From 8bae559da5cf426bb5dfd0a88942d47b7011fcae Mon Sep 17 00:00:00 2001 From: Manuel Luis SanmartĂ­n Rozada Date: Fri, 1 Aug 2014 00:26:22 +0200 Subject: jsrrdgraph: Fix error functions. Error prototype. --- js/Color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/Color.js') diff --git a/js/Color.js b/js/Color.js index e294f65..066e1a1 100644 --- a/js/Color.js +++ b/js/Color.js @@ -24,10 +24,10 @@ */ var ColorError = function (message) { - this.prototype = Error.prototype; this.name = "ColorError"; this.message = (message) ? message : "Error"; }; +ColorError.prototype = new Error(); /** * Color -- cgit v1.1