Author: jfroche
Date: Tue Aug 28 23:03:23 2007
New Revision: 46112
Modified:
kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js
Log:
rename event variables
Modified: kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js
(original)
+++ kukit/kukit.js/branch/commas-in-selectors/kukit/kssparser.js Tue Aug
28 23:03:23 2007
@@ -155,26 +155,26 @@
;;; kukit.E += '"evt-<NAMESPACE>-<EVENTNAME>-<PARAMETER>".';
;;; this.emitError(kukit.E);
;;; }
- var enamespace;
- var ename;
- var ekey;
+ var eventNamespace;
+ var eventName;
+ var eventKey;
if (splitkey.length == 3) {
// evt-<EVENTNAME>-<PARAMETER>: <VALUE>
- ename = splitkey[1];
- ekey = splitkey[2];
+ eventName = splitkey[1];
+ eventKey = splitkey[2];
} else {
// evt-<NAMESPACE>-<EVENTNAME>-<PARAMETER>: <VALUE>
- enamespace = splitkey[1];
- ename = splitkey[2];
- ekey = splitkey[3];
+ eventNamespace = splitkey[1];
+ eventName = splitkey[2];
+ eventKey = splitkey[3];
}
- if (this.evt_name == null) {
+ if (this.eventName == null) {
// This is the first evt- rule, so we set it up
// so that we can check it stays the same within the block.
- this.evt_name = ename;
- this.evt_namespace = enamespace;
+ this.eventName = eventName;
+ this.eventNamespace = eventNamespace;
} else {
- if (ename != this.evt_name || enamespace != this.evt_namespace) {
+ if (eventName != this.eventName || eventNamespace !=
this.eventNamespace) {
return ;
;;; // Do not allow deviation from the previous event names.
;;; kukit.E = 'Wrong key [' + key + '] : ';
@@ -182,10 +182,10 @@
;;; kukit.E += 'keys cannot have different namespace and ';
;;; kukit.E += 'event name than in the event selector, ';
;;; kukit.E += 'it should have been [';
-;;; if (this.evt_namespace){
-;;; kukit.E += this.evt_namespace + '-';
+;;; if (this.eventNamespace){
+;;; kukit.E += this.eventNamespace + '-';
;;; }
-;;; kukit.E += this.evt_name + '].';
+;;; kukit.E += this.eventName + '].';
;;; this.emitError(kukit.E);
}
}
@@ -196,7 +196,7 @@
;;; kukit.E += 'evt-[<NAMESPACE>-]<EVENTNAME>-<PARAMETER> keys.';
;;; this.emitError(kukit.E);
;;; }
- this.eventParameters[ekey] = value.txt;
+ this.eventParameters[eventKey] = value.txt;
}
kukit.kssp.Block.prototype.addActionDeclaration = function(key, splitkey,
value) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins