Skip to content

Instantly share code, notes, and snippets.

@timlinquist
Created June 8, 2011 20:37
Show Gist options
  • Select an option

  • Save timlinquist/1015342 to your computer and use it in GitHub Desktop.

Select an option

Save timlinquist/1015342 to your computer and use it in GitHub Desktop.
Mootools
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