Skip to content

Instantly share code, notes, and snippets.

@infacq
Created October 11, 2013 04:16
Show Gist options
  • Save infacq/6929514 to your computer and use it in GitHub Desktop.
Save infacq/6929514 to your computer and use it in GitHub Desktop.
var modelKu = Backbone.Model.extend({});
modelDia = new modelKu();
modelDia.bind("change", function(model, collection){
alert("ada perubahanlah: " + model.get('some_attribute'));
});
modelDia.set({some_attribute: "nilai untuk sesuatu"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment