Created
November 24, 2010 17:55
-
-
Save spullara/714086 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
var temp; | |
if (typeof YUI != 'undefined') { | |
temp = YUI; | |
YUI = undefined; | |
} | |
loadJS('bagger-yui', 'http://yui.yahooapis.com/combo?3.1.1/build/yui/yui-min.js', false); | |
// now wait for YUI to load | |
var waitForYUIJS = setInterval(function() { | |
// If YUI exists, then library is loaded | |
if (typeof exports.YUI != 'undefined') { | |
if (temp) { | |
YUI = temp; | |
} | |
BaggerYUI = exports.YUI; | |
delete exports; | |
clearInterval(waitForYUIJS); | |
bagger___start(); | |
} | |
}, 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment