Sep 20, 2012, 3:30 PM
[CLOSED] Scoping all the ext.net handlers...
Hi,
Is there a way to "Scope" all ext.net handler functions to use the object you're send it to, without setting Scope everywhere?
For example, if you have a object literal that contains business logic, you might have a method like:
Is there a way to "Scope" all ext.net handler functions to use the object you're send it to, without setting Scope everywhere?
For example, if you have a object literal that contains business logic, you might have a method like:
var busLogic = {
counter: 1,
handleButtonClick: function() {
counter ++;
}
}
If you made a button and set the click fn to busLogic.handleButtonClick, then this would fail because "this" will be set to the button. I want to avoid setting the scope param of the click handler... <Listeners>
<Click Fn="busLogic .handleButtonClick" Scope="Dont want to" />
</Listeners>
Last edited by Daniil; Sep 21, 2012 at 11:01 AM.
Reason: [CLOSED]