JSFiddle - React, Tailwind, and code Playground

by Cody Lindley

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<!-- functional programming utility library -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.3.1/lodash.underscore.js"></script>
<!-- DOM & XHR utility -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js">
</script>
<script>
    
    this.Backbone = {
    "I'm the previous owner of Backbone in the global scope": true
    };
    
</script>
<!-- Backbone.js -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>

CSS

iframe {
    height:163px !important;
}

JavaScript

/*restore the previous refernce to Backbone before the last version of Backbone.js was loaded*/
var lastBackboneParsed = Backbone.noConflict();

//verify the Backbone in the global scope points to previous version
console.log(Backbone["I'm the previous owner of Backbone in the global scope"]); //logs true

/*verify Backbone.js is contained in the new lastBackboneParsed namespace and not Backbone namespace*/
console.log(lastBackboneParsed.VERSION) //logs 1.0.0