diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-05-20 05:21:56 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-05-20 05:21:56 +0400 |
commit | 54aa61a0c6328134d280b9b60080c82252aa8bb1 (patch) | |
tree | faae86d53e152227b25fed4c37952bbc4918e976 /libs/jqplot | |
parent | 22c03b567ab1596486cacb8dc610859de2e8b56d (diff) |
Build unix end of lines
git-svn-id: http://dev.piwik.org/svn/trunk@4728 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/jqplot')
-rwxr-xr-x | libs/jqplot/plugins/jqplot.cursor.js | 28 | ||||
-rw-r--r-- | libs/jqplot/plugins/jqplot.highlighter.js | 12 | ||||
-rwxr-xr-x | libs/jqplot/plugins/jqplot.pieRenderer.js | 12 |
3 files changed, 26 insertions, 26 deletions
diff --git a/libs/jqplot/plugins/jqplot.cursor.js b/libs/jqplot/plugins/jqplot.cursor.js index 677906a2d0..6251531fbd 100755 --- a/libs/jqplot/plugins/jqplot.cursor.js +++ b/libs/jqplot/plugins/jqplot.cursor.js @@ -213,20 +213,20 @@ var c = this.plugins.cursor; // Memory Leaks patch - if (c.zoomCanvas) {
- c.zoomCanvas.resetCanvas();
- c.zoomCanvas = null;
- }
-
- if (c.cursorCanvas) {
- c.cursorCanvas.resetCanvas();
- c.cursorCanvas = null;
- }
-
- if (c._tooltipElem) {
- c._tooltipElem.emptyForce();
- c._tooltipElem = null;
- }
+ if (c.zoomCanvas) { + c.zoomCanvas.resetCanvas(); + c.zoomCanvas = null; + } + + if (c.cursorCanvas) { + c.cursorCanvas.resetCanvas(); + c.cursorCanvas = null; + } + + if (c._tooltipElem) { + c._tooltipElem.emptyForce(); + c._tooltipElem = null; + } // if (c.zoom) { diff --git a/libs/jqplot/plugins/jqplot.highlighter.js b/libs/jqplot/plugins/jqplot.highlighter.js index 97cb134b0d..59a5b8faee 100644 --- a/libs/jqplot/plugins/jqplot.highlighter.js +++ b/libs/jqplot/plugins/jqplot.highlighter.js @@ -179,12 +179,12 @@ // create a canvas which we can draw on. // insert it before the eventCanvas, so eventCanvas will still capture events. $.jqplot.Highlighter.postPlotDraw = function() { - // Memory Leaks patch
- if (this.plugins.highlighter &&
- this.plugins.highlighter.highlightCanvas) {
- this.plugins.highlighter.highlightCanvas.resetCanvas();
- this.plugins.highlighter.highlightCanvas = null;
- }
+ // Memory Leaks patch + if (this.plugins.highlighter && + this.plugins.highlighter.highlightCanvas) { + this.plugins.highlighter.highlightCanvas.resetCanvas(); + this.plugins.highlighter.highlightCanvas = null; + } this.plugins.highlighter.highlightCanvas = new $.jqplot.GenericCanvas(); diff --git a/libs/jqplot/plugins/jqplot.pieRenderer.js b/libs/jqplot/plugins/jqplot.pieRenderer.js index a146677c50..499ae88ebb 100755 --- a/libs/jqplot/plugins/jqplot.pieRenderer.js +++ b/libs/jqplot/plugins/jqplot.pieRenderer.js @@ -767,12 +767,12 @@ // create a canvas which we can draw on. // insert it before the eventCanvas, so eventCanvas will still capture events. function postPlotDraw() { - // Memory Leaks patch
- if (this.plugins.pieRenderer &&
- this.plugins.pieRenderer.highlightCanvas) {
- this.plugins.pieRenderer.highlightCanvas.resetCanvas();
- this.plugins.pieRenderer.highlightCanvas = null;
- }
+ // Memory Leaks patch + if (this.plugins.pieRenderer && + this.plugins.pieRenderer.highlightCanvas) { + this.plugins.pieRenderer.highlightCanvas.resetCanvas(); + this.plugins.pieRenderer.highlightCanvas = null; + } this.plugins.pieRenderer = {highlightedSeriesIndex:null}; this.plugins.pieRenderer.highlightCanvas = new $.jqplot.GenericCanvas(); |