Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Create a fake console api, mimicing Firebug.
- */
- (function(global) {
- var noop = function(){};
- if ( !global['console'] ) {
- global.console = {
- log : noop,
- debug : noop,
- info : noop,
- warn : noop,
- error : noop,
- assert : noop,
- clear : noop,
- dir : noop,
- dirxml : noop,
- trace : noop,
- group : noop,
- groupCollapsed : noop,
- groupEnd : noop,
- time: noop,
- timeEnd: noop,
- profile: noop,
- profileEnd: noop,
- count: noop,
- exception: noop,
- table: noop
- }
- }
- })(window);
Add Comment
Please, Sign In to add comment