Add support for a load more console methods.

This commit is contained in:
Tom Ashworth 2013-10-11 14:54:38 +01:00
parent 8e46260244
commit 58a452c07f

View File

@ -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 () {