mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-18 15:18:04 +00:00
Add support for a load more console methods.
This commit is contained in:
parent
8e46260244
commit
58a452c07f
@ -31,7 +31,11 @@ var proxyConsole = (function () {
|
||||
|
||||
// Create each of these methods on the proxy, and postMessage up to JS Bin
|
||||
// when one is called.
|
||||
var methods = ['debug', 'clear', 'error', 'info', 'log', 'warn', 'dir', 'props', '_raw'];
|
||||
var methods = [
|
||||
'debug', 'clear', 'error', 'info', 'log', 'warn', 'dir', 'props', '_raw', 'group', 'groupEnd',
|
||||
'dirxml', 'table', 'trace', 'assert', 'count', 'markTimeline', 'profile', 'profileEnd', 'time',
|
||||
'timeEnd', 'timeStamp', 'groupCollapsed'
|
||||
];
|
||||
methods.forEach(function (method) {
|
||||
// Create console method
|
||||
proxyConsole[method] = function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user