[KSS-checkins] r45761 - kukit/kukit.js/trunk/kukit
reebalazs at codespeak.net
reebalazs at codespeak.net
Fri Aug 17 08:34:43 CEST 2007
Author: reebalazs
Date: Fri Aug 17 08:34:42 2007
New Revision: 45761
Modified:
kukit/kukit.js/trunk/kukit/eventreg.js
Log:
Add proper BBB for the deprecated lowercase iterator names in last parameters of kukit.eventsGlobalRegistry.registerForAllEvents
Modified: kukit/kukit.js/trunk/kukit/eventreg.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/eventreg.js (original)
+++ kukit/kukit.js/trunk/kukit/eventreg.js Fri Aug 17 08:34:42 2007
@@ -733,6 +733,20 @@
//
kukit.er.getBindIterator = function(iterName) {
+ // attempt to find canonical version of string
+ // and shout if it does not match.
+ // String must start uppercase.
+ var canonical = iterName.substring(0, 1).toUpperCase() +
+ iterName.substring(1);
+ if (iterName != canonical) {
+ // BBB 2007.12.31, this will turn into an exception.
+;;; var msg = 'Deprecated the lowercase iterator names in last ';
+;;; msg += 'parameters of ';
+;;; msg += 'kukit.eventsGlobalRegistry.registerForAllEvents, use [';
+;;; msg += canonical + '] instead of [' + iterName + '] (2007-12-31)';
+;;; kukit.logWarning(msg);
+ iterName = canonical;
+ }
return kukit.er.OperRegistry.prototype['_iterate' + iterName];
};
More information about the Kukit-checkins
mailing list