Author: reebalazs
Date: Wed Aug 29 10:48:11 2007
New Revision: 46130
Modified:
kukit/kukit.js/trunk/kukit/actionreg.js
Log:
Replace string exceptions with proper ones
Modified: kukit/kukit.js/trunk/kukit/actionreg.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/actionreg.js (original)
+++ kukit/kukit.js/trunk/kukit/actionreg.js Wed Aug 29 10:48:11 2007
@@ -32,7 +32,7 @@
;;; if (typeof(func) == 'undefined') {
;;; kukit.E = '[func] argument is mandatory when registering an action';
;;; kukit.E += ' [ActionRegistry.register].';
-;;; throw kukit.E;
+;;; throw new Error(kukit.E);
;;; }
if (this.content[name]) {
// Do not allow redefinition
@@ -52,7 +52,7 @@
if (! func) {
// not found
;;; kukit.E = 'Error : undefined local action [' + name + '].';
- throw kukit.E;
+ throw Error(kukit.E);
}
return func;
};
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins