|
|
|
@ -30,6 +30,7 @@ define('settings/object', function () {
|
|
|
|
|
delete attributes['data-type'];
|
|
|
|
|
delete attributes.tagName;
|
|
|
|
|
for (var name in attributes) {
|
|
|
|
|
if (attributes.hasOwnProperty(name)) {
|
|
|
|
|
var val = attributes[name];
|
|
|
|
|
if (name.search('data-') === 0) {
|
|
|
|
|
element.data(name.substring(5), val);
|
|
|
|
@ -39,6 +40,7 @@ define('settings/object', function () {
|
|
|
|
|
element.attr(name, val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
helper.fillField(element, value);
|
|
|
|
|
if ($('[data-parent="_' + key + '"]', field).length) {
|
|
|
|
|
insertCb(separator);
|
|
|
|
@ -80,6 +82,7 @@ define('settings/object', function () {
|
|
|
|
|
}
|
|
|
|
|
if (Array.isArray(properties)) {
|
|
|
|
|
for (propertyIndex in properties) {
|
|
|
|
|
if (properties.hasOwnProperty(propertyIndex)) {
|
|
|
|
|
attributes = properties[propertyIndex];
|
|
|
|
|
if (typeof attributes !== 'object') {
|
|
|
|
|
attributes = {};
|
|
|
|
@ -93,6 +96,7 @@ define('settings/object', function () {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
get: function (element, trim, empty) {
|
|
|
|
|
var key = element.data('key') || element.data('parent');
|
|
|
|
|