Skip to content

Instantly share code, notes, and snippets.

@dmikey
Created March 6, 2014 08:57
Show Gist options
  • Save dmikey/9385690 to your computer and use it in GitHub Desktop.
Save dmikey/9385690 to your computer and use it in GitHub Desktop.
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js">
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js">
<script>
(function (global, jQuery, underscore) {
global._$ = global._$ || function(){
Object.getOwnPropertyNames(underscore).forEach(function(property) {
if(typeof underscore[property] == 'function'){
(function(){
jQuery[property] = function(){
return underscore[property].apply(0, arguments);
}
}())
};
});
return jQuery;
}();
}(window, jQuery.noConflict(true), _.noConflict()));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment