deep clone + args, rework/cleanup ui binding, preserve groups on poly re-nest
This commit is contained in:
parent
15a0131c6b
commit
18b6b8567a
8 changed files with 238 additions and 222 deletions
|
|
@ -90,11 +90,11 @@ AP.addOnce = function(val) {
|
|||
/**
|
||||
* shallow cloning with clone(arg) call on each new element
|
||||
*/
|
||||
AP.clone = function(arg) {
|
||||
AP.clone = function() {
|
||||
let na = this.slice(),
|
||||
ln = na.length,
|
||||
i = 0;
|
||||
while (i < ln) na[i] = na[i++].clone(arg);
|
||||
while (i < ln) na[i] = na[i++].clone(...arguments);
|
||||
return na;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue