PDA

View Full Version : Luxury Locs - Selectors



PeterGreen
23 Jun 2009, 2:43 AM
Hi,

i have a general question about selector syntax.
I know in ext the method Ext.get(expression) does the job.

Why does Ext not use syntax like motools, jquery or prototype does, like
$(expression) ? I really like the simplicity of this way writing.
Whats about more complex ones: How would i get the object
$(opener.document).find(expression) in Ext ?

Luxury Locs

evant
23 Jun 2009, 2:59 AM
Ext.get and Ext.select aren't the same thing, FYI.

If you really want you could do:



var $ = Ext.select;


Ext.select returns a CompositeElement, that has a filter method.