JSFiddle - React, Tailwind, and code Playground
by nikoshr
HTML
<script src="http://underscorejs.org/underscore-min.js"></script>
<script src="http://backbonejs.org/backbone-min.js"></script>
JavaScript
var m = new Backbone.Model({
att1: 'a',
att2: 'b',
att3: 'c'
});
m.on('change', function() {
console.log(m.changedAttributes());
console.log(_.keys(m.changedAttributes()));
});
m.set({
att1: 'd',
att3: 'e'
});