diff big.js @ 43:eba5866b6adc

Renamed a global variable called 'status' to 'statusArea' so the big test status area would show on Safari. VERY strange bug.
author Atul Varma <varmaa@toolness.com>
date Tue, 14 Apr 2009 10:53:27 -0700
parents 44005d894d1b
children
line wrap: on
line diff
--- a/big.js	Tue Apr 14 10:42:01 2009 -0700
+++ b/big.js	Tue Apr 14 10:53:27 2009 -0700
@@ -71,10 +71,10 @@
 }
 
 var config = document.getElementById("config");
-var status = document.getElementById("status");
+var statusArea = document.getElementById("status");
 var result = document.getElementById("result");
 
-status.textContent = "Please wait...";
+statusArea.textContent = "Please wait...";
 config.textContent = ("Counting word occurrences in a lexicon of " +
                       LEXICON_SIZE + " words, using a corpus of " +
                       CORPUS_SIZE + " documents, each of which is " +
@@ -106,9 +106,9 @@
                     db,
                     makeProgress(
                       function(phase, percent) {
-                        status.textContent = ("building new corpus (" +
-                                              Math.floor(percent * 100) +
-                                              "%)");
+                        statusArea.textContent = ("building new corpus (" +
+                                                  Math.floor(percent * 100) +
+                                                  "%)");
                       }),
                     25,
                     run
@@ -135,10 +135,10 @@
              function(phase, percent) {
                percent = Math.floor(percent * 100);
                var msg = phase + " (" + percent + "%)";
-               status.textContent = msg;
+               statusArea.textContent = msg;
              }),
            finished: function(aResult) {
-             status.textContent = "Done.";
+             statusArea.textContent = "Done.";
 
              ModuleLoader.require(
                "JSON",