Mats Bryntse's Blog

Session material from the ExtJS conference

Posted in Ext Core, Ext JS (Sencha) by Mats Bryntse on August 19, 2009

Just found this link in an Ext forum thread, slides from a session introducing Ext Core. A pretty nice informative read on the basics of Ext Core. According to Abe, more is on the way which sounds very promising!

Ext Core

Tagged with: ,

Ext 3.0 final getting closer

Posted in Ext JS (Sencha) by Mats Bryntse on July 1, 2009

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! :)

Tagged with:

Trying to combine Ext Core and JQuery idTabs extension

Posted in Uncategorized by Mats Bryntse on May 23, 2009

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

Posted in Misc by Mats Bryntse on April 14, 2009

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…

a

Looking forward to those videos!

Tagged with:
Follow

Get every new post delivered to your Inbox.