diff options
author | Manuel Luis SanmartĂn Rozada | 2014-08-01 00:26:22 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-08-02 12:29:56 +0200 |
commit | 8bae559da5cf426bb5dfd0a88942d47b7011fcae (patch) | |
tree | 4333cda187ab9e8317d6f4aa235df99b324eea01 /js/Color.js | |
parent | jsrrdgraph: Fix reduce in DEF (diff) | |
download | apt-panopticon_cgp-8bae559da5cf426bb5dfd0a88942d47b7011fcae.zip apt-panopticon_cgp-8bae559da5cf426bb5dfd0a88942d47b7011fcae.tar.gz apt-panopticon_cgp-8bae559da5cf426bb5dfd0a88942d47b7011fcae.tar.bz2 apt-panopticon_cgp-8bae559da5cf426bb5dfd0a88942d47b7011fcae.tar.xz |
jsrrdgraph: Fix error functions. Error prototype.
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 |