JSFiddle - React, Tailwind, and code Playground
by craigm
HTML
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.1/lodash.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
JavaScript
// backbone view inheritance example
var View1 = Backbone.View.extend({
blah: 'we should not see this in the console',
initialize: function () {
console.log('View1 Initialize', this.blah);
}
});
var View2 = View1.extend({
blah: 'we should see this in the console',
initialize: function () {
View1.prototype.initialize.call(this);
console.log('View2 Initialize', this.blah);
}
});
var view = new View2();