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/RrdTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/RrdTime.js') diff --git a/js/RrdTime.js b/js/RrdTime.js index c1de1fc..9010ece 100644 --- a/js/RrdTime.js +++ b/js/RrdTime.js @@ -27,10 +27,10 @@ */ var RrdTimeError = function (message) { - this.prototype = Error.prototype; this.name = "RrdTimeError"; this.message = (message) ? message : "Error"; }; +RrdTimeError.prototype = new Error(); /** * RrdTime -- cgit v1.1