Hi all,
I observed a strange error.
I´ve been doing optimizations as I removed class dependencies to minimize the 
boot part.
The build version worked fine (and fast of course), but source version 
failed...a little bit. :)
To cut a long story, that´s the call stack:

TypeError: invalid 'instanceof' operand qx.ui.core.Widget
http://localhost:8080/ap/qooxdoo/framework/source/class/qx/ui/core/EventHandler.js
Line 163

Callstack:


canHandleEvent(target=html, type=

"keypress"

)EventHandler.js (Zeile 163)

wrappedFunction()Interface.js (Zeile 451)

findHandler(target=html, type=

"keypress"

)Manager.js (Zeile 564)

__registerAtHandler(target=html, type=

"keypress"

, capture=

undefined

)Manager.js (Zeile 587)

addListener(target=html, type=

"keypress"

, listener=qx.log.appender.Console.__onKeyPress()(), self=[Class 
qx.log.appender.Console] { __visible=

true

,  __history=[0],  classname=

"qx.log.appender.Console"

,  mehr...}, capture=

undefined

)Manager.js (Zeile 463)

addListener(target=html, type=

"keypress"

, listener=qx.log.appender.Console.__onKeyPress()(), self=[Class 
qx.log.appender.Console] { __visible=

true

,  __history=[0],  classname=

"qx.log.appender.Console"

,  mehr...}, capture=

undefined

)Registration.js (Zeile 130)

defer(statics=[Class qx.log.appender.Console] { __visible=

true

,  __history=[0],  classname=

"qx.log.appender.Console"

,  mehr...})Console.js (Zeile 363)

define(name=

"qx.log.appender.Console"

, config=Object { statics=[Class qx.log.appender.Console],  type=

"static"

,  defer=function()})Class.js (Zeile 251)

Console.js()


The message is obvious:
canHandleEvent : function(target, type) {
return target instanceof qx.ui.core.Widget;
},

qx.ui.core.Widget has not been loaded, so it´s undefined.
So...the defer function of qx.log.appender.Console is called before 
qx.ui.core.Widget is loaded, because the boot script is small (and because 
there is no dependency for qx.ui.core.Widget ?).
A solution for myself could be to change the function canHandleEvent of 
qx.ui.core.EventHandler:
canHandleEvent : function(target, type) {
return qx.ui.core.Widget ? (target instanceof qx.ui.core.Widget) : false;
},

So...any suggestions ?

Thanks,
Rob.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to