Hi all,
I need to replace a qooxdoo (0.7.x) function from 'outside' (i.e.
without modifying the qooxdoo source itself.
In addition, I want to be able to call the original function from
within the replacement and, of course, keep the this variable intact.
My (very naive) approach was to place the following lines in the
applications' main function:
var original = qx.event.handler.KeyEventHandler._idealKeyHandler;
qx.event.handler.KeyEventHandler._idealKeyHandler
= function( keyCode, charCode, eventType, domEvent )
{
console.log( "it works!" );
original( keyCode, charCode, eventType, domEvent );
};
But apparently it didn't work, seems as the lines didn't have any
impact at all.
Thanks in advance,
Rüdiger
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel