From b6be82b8edefa452e72ed53391971e53d9dccf83 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 25 Jul 2014 23:28:21 +0200 Subject: jsrrdgraph: Fixed jshint warnings/errors Many fall in the category missing semicolon, but there are legitimate bugs (like throwing an error with an undefined variable, using isInfinite instead of !isFinite or fabs instead of Math.abs). At some places, I moved the variable declarations to avoid duplicate definition warnings. Redundant breaks have been removed (after return / throw). Global variables were implicitly defined in RrdDataFile (which caught my attention) and Base64, these have been made local. Also fixed some whitespace errors. Yay, the consistency. Not all (style) issues are fixed. --- js/RrdGfxSvg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/RrdGfxSvg.js') diff --git a/js/RrdGfxSvg.js b/js/RrdGfxSvg.js index 2bdc1b9..ffc0071 100644 --- a/js/RrdGfxSvg.js +++ b/js/RrdGfxSvg.js @@ -25,7 +25,7 @@ * @constructor */ var RrdGfxSvg = function(svgId) { - this.svg = document.getElementById(svgId) + this.svg = document.getElementById(svgId); this.svgns = "http://www.w3.org/2000/svg"; this.xmlns = "http://www.w3.org/XML/1998/namespace"; this.path = null; -- cgit v1.1