Skip to content

Commit

Permalink
fix IE exception when output log/warn before engine initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jareguo committed May 24, 2019
1 parent 85935e5 commit 86285b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/core/CCDebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let logList;
* @module cc
*/

cc.log = cc.warn = cc.error = cc.assert = console.log;
cc.log = cc.warn = cc.error = cc.assert = console.log.bind(console);

let resetDebugSetting = function (mode) {
// reset
Expand Down

0 comments on commit 86285b3

Please sign in to comment.