Skip to content

Instantly share code, notes, and snippets.

@ohall
Created November 19, 2014 22:35
Show Gist options
  • Select an option

  • Save ohall/6d514eb63d43c6fb5e6b to your computer and use it in GitHub Desktop.

Select an option

Save ohall/6d514eb63d43c6fb5e6b to your computer and use it in GitHub Desktop.
a Backbone model with callbacks
models.OrgsModel = Backbone.Model.extend({
url: function() {
return root + 'organizations.json';
},
behavior: function (org) {
loc.org = org;
utils.nav(org);
},
defaultItem: function () {
return loc.org;
},
id:'orgmenu'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment