JSFiddle - React, Tailwind, and code Playground
by Andy You
HTML
<!doctype html>
<html>
<head>
</head>
<body>
<button id="check">Check</button>
<ul id="list"></ul>
</body>
</html>
JavaScript
var object = {};
_.extend(object, Backbone.Events);
object.bind('alert', function(msg){
alert("Triggered: " + msg);
});
object.trigger("alert", "an event")