forked from 0x2620/oxjs
some redesign for better garbage collection of elements
This commit is contained in:
parent
01f02d9730
commit
1d09d19423
17 changed files with 129 additions and 101 deletions
|
|
@ -102,7 +102,7 @@ Ox.ArrayInput = function(options, self) {
|
|||
Ox.Log('Form', 'remove', i);
|
||||
['input', 'removeButton', 'addButton', 'element'].forEach(function(element) {
|
||||
var key = '$' + element;
|
||||
self[key][i].removeElement();
|
||||
self[key][i].remove();
|
||||
self[key].splice(i, 1);
|
||||
});
|
||||
self.$input.length == 1 && self.$removeButton[0].options({title: 'close'});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue