andynuss
7 Jul 2009, 7:22 AM
Hi,
I'm a extjs newbie and having trouble with the following code fragment at the end of "init.js" in the examples folder of the dist.
var hideMask = function () {
Ext.get('loading').remove();
Ext.fly('loading-mask').fadeOut({
remove:true,
callback : firebugWarning
});
}
hideMask.defer(250);
Here we're declaring a function called hideMask, which I would think could only be invoked via "hideMask()". But then we use the "defer" member of hideMask. What is the magic that extjs is doing to make this work, or is it a feature of javascript that I don't know. I just don't see how hideMask acquires the attribute function defer().
Andy
I'm a extjs newbie and having trouble with the following code fragment at the end of "init.js" in the examples folder of the dist.
var hideMask = function () {
Ext.get('loading').remove();
Ext.fly('loading-mask').fadeOut({
remove:true,
callback : firebugWarning
});
}
hideMask.defer(250);
Here we're declaring a function called hideMask, which I would think could only be invoked via "hideMask()". But then we use the "defer" member of hideMask. What is the magic that extjs is doing to make this work, or is it a feature of javascript that I don't know. I just don't see how hideMask acquires the attribute function defer().
Andy