From 8abce470162e7ea51126b1796ad44aef8aa08359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Josep=20Llodra=CC=80?= Date: Fri, 24 Feb 2012 14:50:17 +0100 Subject: [PATCH] console.warn to this.warn --- dygraph.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; -- 2.7.4