html page and update access use 2 different urls GET update can get an individual update STUD-944
13 lines
502 B
JavaScript
13 lines
502 B
JavaScript
define(["backbone", "js/models/course_update"], function(Backbone, CourseUpdateModel) {
|
|
/*
|
|
The intitializer of this collection must set id to the update's location.url and courseLocation to the course's location. Must pass the
|
|
collection of updates as [{ date : "month day", content : "html"}]
|
|
*/
|
|
var CourseUpdateCollection = Backbone.Collection.extend({
|
|
// instantiator must set url
|
|
|
|
model : CourseUpdateModel
|
|
});
|
|
return CourseUpdateCollection;
|
|
});
|