From: Josep Llodrà€ Date: Fri, 24 Feb 2012 13:50:17 +0000 (+0100) Subject: console.warn to this.warn X-Git-Tag: v1.0.0~314^2~18^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8abce470162e7ea51126b1796ad44aef8aa08359;p=dygraphs.git console.warn to this.warn --- diff --git a/dygraph.js b/dygraph.js index 2bc3f7a..7231640 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1002,13 +1002,13 @@ Dygraph.prototype.createStatusMessage_ = function() { var div = document.createElement("div"); div.className = "dygraph-legend"; for (var name in messagestyle) { - if (messagestyle.hasOwnProperty(name)) { - try { - div.style[name] = messagestyle[name]; - } catch (e) { - console.warn("You are using unsupported css properties for your browser in labelsDivStyles"); - } - } + if (messagestyle.hasOwnProperty(name)) { + try { + div.style[name] = messagestyle[name]; + } catch (e) { + this.warn("You are using unsupported css properties for your browser in labelsDivStyles"); + } + } } this.graphDiv.appendChild(div); this.attrs_.labelsDiv = div;