Author: reebalazs
Date: Tue Jul 24 17:33:09 2007
New Revision: 45305

Modified:
   kukit/kukit.js/branch/ree-binding-improvements/kukit/oper.js
Log:
at default actions, when the usage of pass() is enforced,
we need to think of the case when there were no defaultparms
and in this case we need to set the parms to empty dict

Modified: kukit/kukit.js/branch/ree-binding-improvements/kukit/oper.js
==============================================================================
--- kukit/kukit.js/branch/ree-binding-improvements/kukit/oper.js        
(original)
+++ kukit/kukit.js/branch/ree-binding-improvements/kukit/oper.js        Tue Jul 
24 17:33:09 2007
@@ -166,7 +166,11 @@
         // Put defaultparms to parms!
         // This makes sure, that for implicit events you need not specify 
pass(xxx)
         // for making the parameters arrive to the action.
-        this.parms = this.defaultparms;
+        if (typeof(this.defaultparms) != 'undefined') {
+            this.parms = this.defaultparms;
+        } else {
+            this.parms = {}
+        }
         this.binderinstance._EventBinder_callmethod(namespace, name, this, 
methodname);
         success = true;
     }
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to