Skip to content

Commit

Permalink
Merge pull request #1334 from jameschao/ie10_console_trace
Browse files Browse the repository at this point in the history
Added placeholder console.trace() for browsers that don't have it
  • Loading branch information
publickeating committed Mar 9, 2015
2 parents 98afd82 + 36bc4e6 commit 0802e32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frameworks/runtime/core.js
Expand Up @@ -29,6 +29,12 @@ if (typeof console === 'undefined') {
console.log = console.info = console.warn = console.error = function () {};
}

// prevent console.trace from blowing things up - some browsers like IE10 has
// a console object but no console.trace
if (!console.trace) {
console.trace = function() {};
}

window.SC = window.SC || {};
window.SproutCore = window.SproutCore || SC;

Expand Down

0 comments on commit 0802e32

Please sign in to comment.