Google analytics code

Friday, July 12, 2013

Sencha Touch: Ext version of jQuery methods

I'm trying to use as many native parts of Ext as I can without leaning on other libraries. It's not so much that I wouldn't use the other libraries anyway, but it's better to embrace change. There's a lot of useful stuff that Underscore handles really well.

jQuery Underscore Ext (Sencha Touch)
jQuery.noop Ext.emptyFn
jQuery.proxy Ext.bind
jQuery('selector') Ext.query('selector') 
jQuery.trim Ext.String.trim
[jQuery wrapped elem] = jQuery('selector') [Ext wrapped elem] = Ext.get([from Ext.query])
_.isEmpty, _.isNull Ext.isEmpty

No comments:

Post a Comment

If you found this page useful, or you have any feedback, please leave a comment.