Skip to content

Commit

Permalink
fix(ie9): make console.bind work in ie9 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
mari-sto authored and christopherthielen committed Oct 11, 2017
1 parent 74e8337 commit 318214b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ function normalizedCat(input: Category|string): string {
}

/** @hidden */
const consoletable = isFunction(console.table) ? console.table.bind(console) : console.log.bind(console);
const consoleLog = Function.prototype.bind.call(console.log, console);

/** @hidden */
const consoletable = isFunction(console.table) ? console.table.bind(console) : consoleLog.bind(console);


/**
* Trace categories Enum
Expand Down

0 comments on commit 318214b

Please sign in to comment.