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];
 };
 
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to