Ext 3.0 final getting closer
As seen in a forum post by Aaron Conran, the final release of 3.0 will take place next Monday. There’s also another RC being released tomorrow. Happy times!
Trying to combine Ext Core and JQuery idTabs extension
Don’t ask me why but I was playing around with Ext Core and JQuery idTabs when I had some weird errors. I kept getting errors inside the Ext Core array “remove” augmentation.
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);
}
return this;
}
});</code>
I couldn’t understand why I ended up there until I had a look at the idTabs code below (aList is an array).
for(i in aList) $(aList[i]).removeClass(s.selected);
Here’s the culprit: Iterating an array using for in. A better way to do it would be to use a for loop, or to check hasOwnProperty for each property. This way you’re protected if an external framework should augment the native Array object. I prefer using for loops when iterating over arrays.
Following the Ext conference through Twitter
Since I couldn’t go to the Ext conference I had to settle for the 124312512th best thing, following it through Twitter (link to #extconf @ Hashtags.org). It pretty much stinks to be honest. But something good came out of it believe it or not…

Looking forward to those videos!

leave a comment