Created
March 6, 2014 08:57
-
-
Save dmikey/9385690 to your computer and use it in GitHub Desktop.
This file contains 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
<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