> "this" keyword has different meaning in different points of the script: they > say it "depends on context". this.debug() will work only where "this" refers > to an instance of qx.core.Object or derived class, or any class that > includes qx.core.MLogging mixin. > Explore what is "this" (by calling alert(this), e.g.) at different lines of > your program, and you'll see it's not the same. > For the debug() function to work anywhere in the script, use static method > qx.log.Logger.debug()
Alexey, thank you very much for the detailed explanation! I was aware that the meaning of "this" is location dependent. Other programming languages (some of those I have more experience with) have similar constructs, like "self" in Pascal/Delphi/Lazarus. What I did not find was the fact that debug() originates from the qx.core.MLogging mixin. And what I was particularly looking for is the qx.log.Logger.debug() call. I very much appreciate that you pointed these out! Regards, Keve Nagy * Debrecen * Hungary ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel