Author: reebalazs
Date: Fri Sep 7 16:46:02 2007
New Revision: 46406
Modified:
kukit/kukit.js/branch/1.2/kukit/plugin.js
Log:
Merge from trunk -r46401:46402 : Another fix that disabled the binding of
document:load
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 16:46:02 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