Skip to content

Commit

Permalink
Fix console stubbing method in oldIE
Browse files Browse the repository at this point in the history
Expose `console` object to global scope in IE6 and IE7

Reference: gh-1229
  • Loading branch information
bmcustodio authored and drublic committed Oct 14, 2012
1 parent 5bed678 commit dc00673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'timeStamp', 'trace', 'warn'
];
var length = methods.length;
var console = window.console || {};
var console = (window.console = window.console || {});

while (length--) {
// Only stub undefined methods.
Expand Down

0 comments on commit dc00673

Please sign in to comment.