Remember that functions are first class objects in JS, so this is
telling the event handler to use that object as a function to call.
In the event execute for button,
if (hasPressed) {
this.execute();
}
execute is the event handler from MExecutable
execute : function()
{
var cmd = this.getCommand();
if (cmd) {
cmd.execute(this);
}
this.fireEvent("execute");
},
Make sense?
________________________________
From: aditya siram [mailto:[email protected]]
Sent: Thursday, September 03, 2009 11:57 AM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] Modal Dialogs and blocking the
background
But 'wm1.open' has no side effects. I would have expected it to
be wm1.open(). I'm still not sure why the demo code works.
-deech
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel