fix setItems keeping references to original arrays.

This commit is contained in:
Christopher Jeffrey 2014-01-25 16:31:15 -06:00
parent 304bd8e63e
commit 075ca1049a
1 changed files with 3 additions and 2 deletions

View File

@ -4221,10 +4221,11 @@ List.prototype.removeItem = function(child) {
};
List.prototype.setItems = function(items) {
var i = 0
var items = items.slice()
, original = this.items.slice()
, selected = this.selected
, sel = this.ritems[this.selected];
, sel = this.ritems[this.selected]
, i = 0;
this.select(0);