Author: reebalazs
Date: Mon Apr 30 21:38:05 2007
New Revision: 42498

Modified:
   kukit/kukit.js/branch/performance_improvement/kukit/providerreg.js
Log:
Change the deprecation of the form submit parameters; emit the warning from 
check and not from eval of the providers.

Modified: kukit/kukit.js/branch/performance_improvement/kukit/providerreg.js
==============================================================================
--- kukit/kukit.js/branch/performance_improvement/kukit/providerreg.js  
(original)
+++ kukit/kukit.js/branch/performance_improvement/kukit/providerreg.js  Mon Apr 
30 21:38:05 2007
@@ -158,9 +158,9 @@
         if (args.length != 1) {
             throw 'form method needs 1 arguments (formname)';
         }
+        kukit.logWarning('Deprecated the form(formname) parameter provider, 
use xxx-kssSubmitForm: form(formname) instead!');
     },
     eval: function(args, node) {
-        kukit.logWarning('Deprecated the form(formname) parameter provider, 
use xxx-kssSubmitForm: form(formname) instead!');
         return kukit.fo.getAllFormVars(new kukit.fo.NamedFormLocator(args[0]), 
new kukit.ut.DictCollector());
     }
 };
@@ -173,9 +173,9 @@
         if (args.length != 0) {
             throw 'currentForm method needs no argument';
         }
+        kukit.logWarning('Deprecated the currentForm() parameter provider, use 
xxx-kssSubmitForm: currentForm() instead!');
     },
     eval: function(args, node) {
-        kukit.logWarning('Deprecated the currentForm() parameter provider, use 
xxx-kssSubmitForm: currentForm() instead!');
         return kukit.fo.getAllFormVars(new kukit.fo.CurrentFormLocator(node), 
new kukit.ut.DictCollector());
     }
 };
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to