Author: reebalazs
Date: Thu Oct 4 18:24:52 2007
New Revision: 47152
Modified:
kukit/kukit.js/trunk/kukit/oper.js
Log:
Merge critical fix from ree-binding-improvements branch:
at default actions, when the usage of pass() is enforced,
we need to think of the case when there were no defaultParameters
and in this case we need to set the parms to empty dict
Modified: kukit/kukit.js/trunk/kukit/oper.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/oper.js (original)
+++ kukit/kukit.js/trunk/kukit/oper.js Thu Oct 4 18:24:52 2007
@@ -189,9 +189,13 @@
} else {
// Put defaultParameters to parms!
// This makes sure, that for implicit events
- // you do need not to specify pass(xxx)
+ // you do not need to specify pass(key)
// for making the parms arrive to the action.
- this.parms = this.defaultParameters;
+ if (typeof(this.defaultParameters) != 'undefined') {
+ this.parms = this.defaultParameters;
+ } else {
+ this.parms = {};
+ }
this.binder._EventBinder_callMethod(
namespace, name, this, methodName);
success = true;
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins