1 // Avoid `console` errors in browsers that lack a console.
4 var noop = function () {};
6 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
7 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
8 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
9 'timeStamp', 'trace', 'warn'
11 var length = methods.length;
12 var console = (window.console = window.console || {});
15 method = methods[length];
17 // Only stub undefined methods.
18 if (!console[method]) {
19 console[method] = noop;
24 // Place any jQuery/helper plugins in here.