Skip to content

Instantly share code, notes, and snippets.

@shimabox
Last active December 19, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimabox/5885058 to your computer and use it in GitHub Desktop.
Save shimabox/5885058 to your computer and use it in GitHub Desktop.
/*@cc_on!@*/false だけでIEかどうかの判定ができると聞いて / alertとconsole.logのラッパー的な / 名前も簡易(alert + console.log)
;(function(ns){
if(typeof ns.alog === 'function') return;
ns.alog = function(){
var args = [].slice.call(arguments).concat();
if (/*@cc_on!@*/false) {
return alert(args);
}
return console.log(args);
}
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment