Add object setting plugin

Allows objects to be added to a plugin's settings using a tag with a JSON-like syntax in data-attributes.
A complex object can be created by using an array or another object as a parent, the object will be added to the parent array or the parent object's declared property instead of as it's own data-key.
This commit is contained in:
yariplus
2015-03-06 10:20:35 -05:00
parent 558e708576
commit 1102f40873
2 changed files with 104 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ define('settings', function () {
'settings/textarea',
'settings/select',
'settings/array',
'settings/key'
'settings/key',
'settings/object'
];
var Settings,