Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created August 10, 2012 16:14
Show Gist options
  • Save eduardolundgren/3315306 to your computer and use it in GitHub Desktop.
Save eduardolundgren/3315306 to your computer and use it in GitHub Desktop.
Multiple YUI versions proposal
<script>
YUI_GLOBAL_NAMESPACE = 'YUI360';
</script>
<script src="yui3.6.0.js">
function(Y, YUI) { 3.6.0 YUI. }
<script>
YUI_GLOBAL_NAMESPACE = 'YUI341';
</script>
<script src="yui3.4.1.js">
function(Y, YUI) {
YUI360().use('treeview', function(Y360) {
Y360
});
}
<script>
YUI_GLOBAL_NAMESPACE = null;
</script>
<script src="yui3.x.y.js">
function(Y, YUI) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment