aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/RrdGraph.js
diff options
context:
space:
mode:
authorManuel Luis SanmartĂ­n Rozada2014-08-01 00:26:22 +0200
committerPim van den Berg2014-08-02 12:29:56 +0200
commit8bae559da5cf426bb5dfd0a88942d47b7011fcae (patch)
tree4333cda187ab9e8317d6f4aa235df99b324eea01 /js/RrdGraph.js
parentjsrrdgraph: Fix reduce in DEF (diff)
downloadapt-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/RrdGraph.js')
-rw-r--r--js/RrdGraph.js7
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 */
28var RrdGraphDescError = function (message) 28var 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};
33RrdGraphDescError.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 */
394var RrdVdefError = function (message) 394var 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};
399RrdVdefError.prototype = new Error();
400
400 401
401/** 402/**
402 * RrdVdef 403 * RrdVdef
@@ -694,10 +695,10 @@ RrdVdef.prototype.calc = function(src)
694 */ 695 */
695var RrdGraphError = function (message) 696var 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};
701RrdGraphError.prototype = new Error();
701 702
702/** 703/**
703 * RrdGraph 704 * RrdGraph