Created
December 17, 2012 19:12
-
-
Save rohn/4321027 to your computer and use it in GitHub Desktop.
Backbone: collection
This file contains 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
define(function (require) { | |
"use strict"; | |
var Backbone = require('backbone'); | |
var model = require("model.js"); | |
var collection = Backbone.Collection.extend({ | |
model: model, | |
url: "/models.json" | |
}); | |
return collection; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment