Skip to content

Commit

Permalink
Moved console-as-object test into a function, refs #18197
Browse files Browse the repository at this point in the history
(cherry picked from commit 5d9b78b)
  • Loading branch information
Tom Dye authored and dylans committed May 9, 2016
1 parent 71aac40 commit 242f3b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _base/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ define(["../has", "./config", "require", "module"], function(has, config, requir

if(has("dojo-guarantee-console")){
// IE 9 bug: https://bugs.dojotoolkit.org/ticket/18197
has.add("console-as-object", Function.prototype.bind && console && typeof console.log === "object");
has.add("console-as-object", function () {
return Function.prototype.bind && console && typeof console.log === "object";
});

typeof console != "undefined" || (console = {}); // intentional assignment
// Be careful to leave 'log' always at the end
var cn = [
Expand Down

0 comments on commit 242f3b8

Please sign in to comment.