Author: reebalazs
Date: Wed Aug 29 10:50:01 2007
New Revision: 46131
Modified:
kukit/kukit.js/trunk/kukit/forms.js
Log:
Replace string exceptions with proper ones
Modified: kukit/kukit.js/trunk/kukit/forms.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/forms.js (original)
+++ kukit/kukit.js/trunk/kukit/forms.js Wed Aug 29 10:50:01 2007
@@ -279,7 +279,7 @@
var hash = kukit.rd.hashNode(node);
if (typeof(this.editors[hash]) != 'undefined') {
;;; kukit.E = 'Double registration of editor update on node.';
- throw kukit.E;
+ throw new Error(kukit.E);
}
this.editors[hash] = editor;
//kukit.logDebug('Registered '+node.name + ' hash=' + hash);
@@ -312,7 +312,7 @@
kukit.fo.FormPP.prototype = {
check: function(args) {
;;; if (args.length != 1) {
-;;; throw 'form method needs 1 arguments (formname)';
+;;; throw new Error('form method needs 1 arguments (formname)');
;;; }
},
eval: function(args, node) {
@@ -327,7 +327,7 @@
kukit.fo.CurrentFormPP.prototype = {
check: function(args) {
;;; if (args.length != 0) {
-;;; throw 'currentForm method needs no argument';
+;;; throw new Error('currentForm method needs no argument');
;;; }
},
eval: function(args, node) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins