JSFiddle - React, Tailwind, and code Playground
by philfreo
HTML
<script src="http://underscorejs.org/underscore-min.js"></script>
<script src="https://raw.github.com/documentcloud/backbone/master/backbone.js"></script>
JavaScript
var View = Backbone.View.extend({
initialize: function(options) {
setInterval(_(function() {
this.trigger('tick');
}).bind(this), 1000);
this.listenTo(this, 'tick', function() {
document.write('tick ');
}, this);
}
});
var view = new View();
view.render();
setTimeout(function() {
view.remove();
}, 4500);