From: Stanislav Chachkov Date: Wed, 10 Nov 2010 15:24:19 +0000 (+0100) Subject: bug: operator priority X-Git-Tag: v1.0.0~614 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ddd1b11fa96d2dfa188995d5c48d1476cbf0f9bf;p=dygraphs.git bug: operator priority --- diff --git a/dygraph.js b/dygraph.js index 32d1e0d..0893f65 100644 --- a/dygraph.js +++ b/dygraph.js @@ -189,10 +189,10 @@ Dygraph.prototype.__init__ = function(div, file, attrs) { // If the div isn't already sized then inherit from our attrs or // give it a default size. if (div.style.width == '') { - div.style.width = attrs.width || Dygraph.DEFAULT_WIDTH + "px"; + div.style.width = (attrs.width || Dygraph.DEFAULT_WIDTH) + "px"; } if (div.style.height == '') { - div.style.height = attrs.height || Dygraph.DEFAULT_HEIGHT + "px"; + div.style.height = (attrs.height || Dygraph.DEFAULT_HEIGHT) + "px"; } this.width_ = parseInt(div.style.width, 10); this.height_ = parseInt(div.style.height, 10);