Created
June 8, 2011 20:37
-
-
Save timlinquist/1015342 to your computer and use it in GitHub Desktop.
Mootools
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 jQueryLoaded(){ | |
| return (typeof(jQuery) != 'undefined'); | |
| } | |
| if(jQueryLoaded()){ | |
| console.log('WTF jQuery?'); | |
| $('document').ready(function(){ | |
| jquery_link_to(); | |
| }); | |
| } | |
| else{ | |
| window.addEvent('domready', function() { | |
| console.log('WTF MooTools?'); | |
| mootools_link_to(); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment