Author: reebalazs
Date: Fri Sep 7 15:36:28 2007
New Revision: 46403
Modified:
kukit/kukit.js/branch/1.2/doc/HISTORY.txt
kukit/kukit.js/branch/1.2/kukit/plugin.js
Log:
Merge from trunk -r46401:46402 : Fix logging from the event binder of [load,
iload], that caused document:load fail in development mode
Modified: kukit/kukit.js/branch/1.2/doc/HISTORY.txt
==============================================================================
--- kukit/kukit.js/branch/1.2/doc/HISTORY.txt (original)
+++ kukit/kukit.js/branch/1.2/doc/HISTORY.txt Fri Sep 7 15:36:28 2007
@@ -6,6 +6,9 @@
- ...
+ - Fixed an issue that caused document:load fail
+ [ree]
+
kukit.js - 1.2 Released 2007-08-17
- Move ;;; markers to first columns.
Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js
==============================================================================
--- kukit/kukit.js/branch/1.2/kukit/plugin.js (original)
+++ kukit/kukit.js/branch/1.2/kukit/plugin.js Fri Sep 7 15:36:28 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