Commits

Michel Albert  committed f80959a

Making it production ready.

  • Participants
  • Parent commits 90d44c8

Comments (0)

Files changed (2)

File js/plovr-config.js

     "inputs": "sphinx-folding.js",
     "mode": "SIMPLE",
     "level": "VERBOSE",
-    "output-file": "../foldable/static/foldable.js"
+    "output-file": "../foldable/static/foldable.js",
+    "define": {
+        "goog.DEBUG": false
+    }
 }

File js/sphinx-folding.js

 
 SphinxFolding.prototype.init = function() {
   goog.require('goog.debug.FancyWindow');
-  var debugWindow = new goog.debug.FancyWindow('main');
-  debugWindow.setEnabled(true);
-  debugWindow.init();
+  if (goog.DEBUG) {
+    var debugWindow = new goog.debug.FancyWindow('main');
+    debugWindow.setEnabled(true);
+    debugWindow.init();
+  }
   goog.debug.Console.autoInstall();
 
   var classes = goog.dom.getElementsByTagNameAndClass('dt');