Bug in the function that splits variables.
[dygraphs.git] / auto_tests / misc / local.html
index 5bdf428..a7efaf6 100644 (file)
@@ -35,6 +35,7 @@
   <script type="text/javascript" src="../tests/scientific_notation.js"></script>
   <script type="text/javascript" src="../tests/pathological_cases.js"></script>
   <script type="text/javascript" src="../tests/date_formats.js"></script>
+  <script type="text/javascript" src="../tests/formats.js"></script>
   <script type="text/javascript" src="../tests/update_options.js"></script>
   <script type="text/javascript" src="../tests/utils_test.js"></script>
   <script type="text/javascript" src="../tests/multiple_axes.js"></script>
       var query = window.location.search.substring(1); 
       var args = {};
       var vars = query.split("&"); 
-      for (var i = 0;i < vars.length; i++) { 
-        var pair = vars[i].split("="); 
-        args[pair[0]] = pair[1];
+      for (var i = 0; i < vars.length; i++) { 
+        if (vars[i].length > 0) {
+          var pair = vars[i].split("="); 
+          args[pair[0]] = pair[1];
+        }
       }
       return args;
     }