From: Robert Konigsberg Date: Fri, 11 Jan 2013 15:11:05 +0000 (-0500) Subject: Last set of code review comments for unzoom. X-Git-Tag: v1.0.0~129^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=009e3ec32f901a607bc741d465d04cc39829701f;p=dygraphs.git Last set of code review comments for unzoom. --- diff --git a/plugins/unzoom.js b/plugins/unzoom.js index ba510d0..d81413a 100644 --- a/plugins/unzoom.js +++ b/plugins/unzoom.js @@ -63,7 +63,7 @@ Dygraph.Plugins.Unzoom = (function() { } this.button_ = document.createElement('button'); - this.button_.innerHTML = 'Unzoom'; + this.button_.innerHTML = 'Reset Zoom'; this.button_.style.display = 'none'; this.button_.style.position = 'absolute'; var area = g.plotter_.area; @@ -92,7 +92,7 @@ Dygraph.Plugins.Unzoom = (function() { }; unzoom.prototype.show = function(enabled) { - this.button_.style.display = enabled ? 'block' : ''; + this.button_.style.display = enabled ? '' : 'none'; }; unzoom.prototype.destroy = function() {