diff options
Diffstat (limited to '')
| -rw-r--r-- | js/RrdGraph.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js index 48b9814..a3b0124 100644 --- a/js/RrdGraph.js +++ b/js/RrdGraph.js | |||
| @@ -27,10 +27,10 @@ | |||
| 27 | */ | 27 | */ |
| 28 | var RrdGraphDescError = function (message) | 28 | var RrdGraphDescError = function (message) |
| 29 | { | 29 | { |
| 30 | this.prototype = Error.prototype; | ||
| 31 | this.name = "RrdGraphDescError"; | 30 | this.name = "RrdGraphDescError"; |
| 32 | this.message = (message) ? message : "Error"; | 31 | this.message = (message) ? message : "Error"; |
| 33 | }; | 32 | }; |
| 33 | RrdGraphDescError.prototype = new Error(); | ||
| 34 | 34 | ||
| 35 | /** | 35 | /** |
| 36 | * RrdGraphDesc | 36 | * RrdGraphDesc |
| @@ -393,10 +393,11 @@ RrdGraphDesc.prototype.hrule = function (graph, value, color, legend) | |||
| 393 | */ | 393 | */ |
| 394 | var RrdVdefError = function (message) | 394 | var RrdVdefError = function (message) |
| 395 | { | 395 | { |
| 396 | this.prototype = Error.prototype; | ||
| 397 | this.name = "RrdVdefError"; | 396 | this.name = "RrdVdefError"; |
| 398 | this.message = (message) ? message : "Error"; | 397 | this.message = (message) ? message : "Error"; |
| 399 | }; | 398 | }; |
| 399 | RrdVdefError.prototype = new Error(); | ||
| 400 | |||
| 400 | 401 | ||
| 401 | /** | 402 | /** |
| 402 | * RrdVdef | 403 | * RrdVdef |
| @@ -694,10 +695,10 @@ RrdVdef.prototype.calc = function(src) | |||
| 694 | */ | 695 | */ |
| 695 | var RrdGraphError = function (message) | 696 | var RrdGraphError = function (message) |
| 696 | { | 697 | { |
| 697 | this.prototype = Error.prototype; | ||
| 698 | this.name = "RrdGraphError"; | 698 | this.name = "RrdGraphError"; |
| 699 | this.message = (message) ? message : "Error"; | 699 | this.message = (message) ? message : "Error"; |
| 700 | }; | 700 | }; |
| 701 | RrdGraphError.prototype = new Error(); | ||
| 701 | 702 | ||
| 702 | /** | 703 | /** |
| 703 | * RrdGraph | 704 | * RrdGraph |
