Author: reebalazs
Date: Fri Sep  7 16:44:23 2007
New Revision: 46405

Modified:
   kukit/kukit.js/trunk/kukit/plugin.js
Log:
Another fix that disabled the binding of document:load

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 16:44:23 2007
@@ -354,7 +354,15 @@
     }
     oper.evalBool('initial');
     oper.evalBool('insert');
-    var phase = oper.node._kukitmark;
+    var phase;
+    if (oper.node == null) {
+        // if the event is bound to a document node,
+        // we are in phase 1.
+        phase = 1;
+    } else {
+        // get the phase from the node
+        phase = oper.node._kukitmark;
+    }
     if (phase == 1 && ! oper.parms.initial) {
 ;;;     var msg = 'EventRule #' + oper.eventRule.getIndex() + ' mergeId [';
 ;;;     msg += oper.eventRule.kssSelector.mergeId + '] event ignored,';
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to