1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Updated inputData.js

This commit is contained in:
Nadim Afana 2016-05-05 18:09:24 -07:00
parent 54e126a664
commit 76298267f9

View File

@ -1,6 +1,7 @@
define([
'jquery'
], function ($) {
'jquery',
'../utils'
], function ($, Utils) {
function InputData (decorated, $element, options) {
this._currentData = [];
this._valueSeparator = options.get('valueSeparator') || ',';
@ -116,8 +117,8 @@ define([
};
InputData.prototype.addOptions = function (_, $options) {
var options = $.map($options, function ($option) {
return $.data($option[0], 'data');
var options = $.map($options, function ($option) {
return Utils.GetData($option[0], 'data');
});
this._currentData.push.apply(this._currentData, options);