Skip to content

Instantly share code, notes, and snippets.

@mikehins
Last active December 22, 2015 11:28
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 mikehins/6465337 to your computer and use it in GitHub Desktop.
Save mikehins/6465337 to your computer and use it in GitHub Desktop.
Jquery Utils snippets
// console.log
$.fn.extend({debug: function(msg){
return $(document).each(function() {
if (window.console && window.console.log) window.console.log(msg);
});
}
});
// minified
(function($){$.extend({log:function(e){return $(document).each(function(){if(window.console&&window.console.log)window.console.log(e)})}})}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment