Created
June 16, 2017 04:18
-
-
Save yaplex/2b50129be31e57efa9394eaec58f7728 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.log = | |
{ | |
log: function(message) { | |
//if('console' in window && 'log' in window.console) | |
if (typeof window.console != 'undefined' && typeof window.console.log != 'undefined') { | |
console.log(message); | |
} | |
else { | |
// do nothing | |
//alert('console is not supported: ' + message); | |
} | |
}, | |
info : function(message) { | |
// todo | |
} | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment