console.warn to this.warn
authorJosep Llodrà <jlg.hrtc@gmail.com>
Fri, 24 Feb 2012 13:50:17 +0000 (14:50 +0100)
committerJosep Llodrà <jlg.hrtc@gmail.com>
Fri, 24 Feb 2012 13:50:17 +0000 (14:50 +0100)
dygraph.js

index 2bc3f7a..7231640 100644 (file)
@@ -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;