Created
November 19, 2014 22:35
-
-
Save ohall/6d514eb63d43c6fb5e6b to your computer and use it in GitHub Desktop.
a Backbone model with callbacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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