Animal
28 Feb 2007, 7:44 AM
Ext.applyIf(Array.prototype, {
indexOf : function(o){
for (var i = 0, len = this.length; i < len; i++){
if(this[i] == o) return i;
}
return -1;
},
remove : function(o){
var index = this.indexOf(o);
if(index != -1){
this.splice(index, 1);
}
}
});
These two are included in the as the first two elements. So looping through the array from 0 to myArray.length iterates through these. This breaks DomHelper:
http://i131.photobucket.com/albums/p286/TimeTrialAnimal/brokenarray.jpg
It passes a function in, and createHTML attempts to access the "tag" property!
indexOf : function(o){
for (var i = 0, len = this.length; i < len; i++){
if(this[i] == o) return i;
}
return -1;
},
remove : function(o){
var index = this.indexOf(o);
if(index != -1){
this.splice(index, 1);
}
}
});
These two are included in the as the first two elements. So looping through the array from 0 to myArray.length iterates through these. This breaks DomHelper:
http://i131.photobucket.com/albums/p286/TimeTrialAnimal/brokenarray.jpg
It passes a function in, and createHTML attempts to access the "tag" property!