|
@@ -1,6 +1,7 @@
|
|
define([
|
|
define([
|
|
- 'jquery'
|
|
|
|
-], function ($) {
|
|
|
|
|
|
+ 'jquery',
|
|
|
|
+ '../utils'
|
|
|
|
+], function ($, Utils) {
|
|
function InputData (decorated, $element, options) {
|
|
function InputData (decorated, $element, options) {
|
|
this._currentData = [];
|
|
this._currentData = [];
|
|
this._valueSeparator = options.get('valueSeparator') || ',';
|
|
this._valueSeparator = options.get('valueSeparator') || ',';
|
|
@@ -116,8 +117,8 @@ define([
|
|
};
|
|
};
|
|
|
|
|
|
InputData.prototype.addOptions = function (_, $options) {
|
|
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);
|
|
this._currentData.push.apply(this._currentData, options);
|