whitespace cleanup
authorDan Vanderkam <danvk@google.com>
Mon, 27 Feb 2012 16:23:08 +0000 (11:23 -0500)
committerDan Vanderkam <danvk@google.com>
Mon, 27 Feb 2012 16:23:08 +0000 (11:23 -0500)
dygraph.js
tests/customLabelCss3.html

index e3470e7..14347f5 100644 (file)
@@ -1002,13 +1002,13 @@ Dygraph.prototype.createStatusMessage_ = function() {
     var div = document.createElement("div");
     div.className = "dygraph-legend";
     for (var name in messagestyle) {
     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) {
-               this.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;
     }
     this.graphDiv.appendChild(div);
     this.attrs_.labelsDiv = div;
index c90af5f..a5c7c3a 100644 (file)
               labelsDivWidth: 100,
               labelsDivStyles: {
                 'backgroundColor': 'rgba(200, 200, 255, 0.75)',
               labelsDivWidth: 100,
               labelsDivStyles: {
                 'backgroundColor': 'rgba(200, 200, 255, 0.75)',
-                               'padding': '4px',
-               'border': '1px solid black',
-                               'borderRadius': '10px',
-                               'boxShadow': '4px 4px 4px #888'
-                         },
+                'padding': '4px',
+                'border': '1px solid black',
+                'borderRadius': '10px',
+                'boxShadow': '4px 4px 4px #888'
+              },
               labelsSeparateLines: true,
               yAxisLabelWidth: 20
             }
               labelsSeparateLines: true,
               yAxisLabelWidth: 20
             }