Author: reebalazs
Date: Fri Sep  7 15:30:56 2007
New Revision: 46402

Modified:
   kukit/kukit.js/trunk/kukit/plugin.js
Log:
Fix logging from the event binder of [load, iload], that caused document:load 
fail in development mode (for real)

Modified: kukit/kukit.js/trunk/kukit/plugin.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/plugin.js        (original)
+++ kukit/kukit.js/trunk/kukit/plugin.js        Fri Sep  7 15:30:56 2007
@@ -423,8 +423,18 @@
         // we need to execute immediately.
         var func_to_bind = loadoper.makeExecuteActionsHook();
         var remark = '';
-;;;     remark += '[load] event execution for node [';
-;;;     remark += loadoper.node.tagName.toLowerCase() + ']';
+;;;     remark += '[load] event execution for ';
+;;;     // loadoper can execute on document!
+;;;     // Is this the case? 
+;;;     if (loadoper.node == null) {
+;;;         // document:load
+;;;         remark += '[document]';
+;;;     } else {
+;;;         // <node>:load
+;;;         remark += 'node [';
+;;;         remark += loadoper.node.tagName.toLowerCase();
+;;;         remark += ']';
+;;;     }
         kukit.engine.bindScheduler.addPost(func_to_bind, remark);
     }
     if (iloadoper) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to