diff options
Diffstat (limited to 'js/Color.js')
-rw-r--r-- | js/Color.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
24 | */ | 24 | */ |
25 | var ColorError = function (message) | 25 | var ColorError = function (message) |
26 | { | 26 | { |
27 | this.prototype = Error.prototype; | ||
28 | this.name = "ColorError"; | 27 | this.name = "ColorError"; |
29 | this.message = (message) ? message : "Error"; | 28 | this.message = (message) ? message : "Error"; |
30 | }; | 29 | }; |
30 | ColorError.prototype = new Error(); | ||
31 | 31 | ||
32 | /** | 32 | /** |
33 | * Color | 33 | * Color |