Browse files

debug.js correct condition to disable logging, e.g. when running specs

  • Loading branch information...
1 parent d8f23d3 commit 49f6335e6870b16697bd715662c245f2b784cd67 @pixelhandler pixelhandler committed Jun 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/test/testenv.js
  2. +1 −1 src/utils/debug.js
View
2 src/test/testenv.js
@@ -2,7 +2,7 @@
/*jslint regexp: true, nomen: true */
/*global window, jasmine, jQuery */
-if (!window.HL) { var HL = {}; }
+if (!window.HL) { window.HL = {}; }
// utils/debug module will disable logging when true...
HL.disableDebugMode = true;
View
2 src/utils/debug.js
@@ -49,7 +49,7 @@ define(['facade'], function (facade) {
}
};
- if (HL && HL.disableDebugMode) {
+ if (window.HL && window.HL.disableDebugMode) {
debug.mode = function () { return false; };
}

0 comments on commit 49f6335

Please sign in to comment.