mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-28 12:38:22 +00:00
18 lines
421 B
JavaScript
18 lines
421 B
JavaScript
/** @license
|
|
|
|
----------------------------------------------
|
|
|
|
Copyright (c) 2012, Fergal Moran. All rights reserved.
|
|
Code provided under the BSD License:
|
|
|
|
*/
|
|
var Comment = DSSModel.extend({
|
|
urlRoot:com.podnoms.settings.urlRoot + "comments/"
|
|
});
|
|
|
|
var CommentCollection = TastypieCollection.extend({
|
|
model:Comment,
|
|
comparator: function(comment){
|
|
return -comment.get("id");
|
|
}
|
|
}); |