diff options
author | Ben Langfeld <ben@langfeld.me> | 2016-09-24 02:39:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-24 02:39:21 +0300 |
commit | 5574d2c682bd167e17136b4c7dcb8d816d08a94c (patch) | |
tree | 0f55a11d91f15c8f1ef12db9546bec420a44aff6 | |
parent | 9bf0998e553465de62d7026b51681cc742290df6 (diff) | |
parent | 2e361bec971ea233813b3631e067da981f611e79 (diff) |
Merge pull request #481 from mathiasrw/patch-2
Correct check for undefined variable
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index c40d29b..98d7a4d 100644 --- a/src/core.js +++ b/src/core.js @@ -162,7 +162,7 @@ Candy.Core = (function(self, Strophe, $) { // Enable debug logging if(_options.debug) { - if(typeof window.console !== undefined && typeof window.console.log !== undefined) { + if(typeof window.console !== 'undefined' && typeof window.console.log !== 'undefined') { // Strophe has a polyfill for bind which doesn't work in IE8. if(Function.prototype.bind && Candy.Util.getIeVersion() > 8) { self.log = Function.prototype.bind.call(console.log, console); |