|
|
|
@ -145,7 +145,23 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, 30) |
|
|
|
|
}, 30), |
|
|
|
|
|
|
|
|
|
_prepareGroup = function (options) { |
|
|
|
|
var group = options.group; |
|
|
|
|
|
|
|
|
|
if (!group || typeof group != 'object') { |
|
|
|
|
group = options.group = {name: group}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
['pull', 'put'].forEach(function (key) { |
|
|
|
|
if (!(key in group)) { |
|
|
|
|
group[key] = true; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
options.groups = ' ' + group.name + (group.put.join ? ' ' + group.put.join(' ') : '') + ' '; |
|
|
|
|
} |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -197,22 +213,7 @@
|
|
|
|
|
!(name in options) && (options[name] = defaults[name]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var group = options.group; |
|
|
|
|
|
|
|
|
|
if (!group || typeof group != 'object') { |
|
|
|
|
group = options.group = { name: group }; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
['pull', 'put'].forEach(function (key) { |
|
|
|
|
if (!(key in group)) { |
|
|
|
|
group[key] = true; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options.groups = ' ' + group.name + (group.put.join ? ' ' + group.put.join(' ') : '') + ' '; |
|
|
|
|
|
|
|
|
|
_prepareGroup(options); |
|
|
|
|
|
|
|
|
|
// Bind all private methods
|
|
|
|
|
for (var fn in this) { |
|
|
|
@ -906,6 +907,10 @@
|
|
|
|
|
return options[name]; |
|
|
|
|
} else { |
|
|
|
|
options[name] = value; |
|
|
|
|
|
|
|
|
|
if (name === 'group') { |
|
|
|
|
_prepareGroup(options); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|