mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 09:38:18 +00:00
30 lines
1022 B
JavaScript
30 lines
1022 B
JavaScript
// Generated by CoffeeScript 1.4.0
|
|
(function() {
|
|
var __hasProp = {}.hasOwnProperty,
|
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
|
|
|
define(['backbone', 'moment'], function(Backbone, moment) {
|
|
var NotificationItem;
|
|
NotificationItem = (function(_super) {
|
|
|
|
__extends(NotificationItem, _super);
|
|
|
|
function NotificationItem() {
|
|
return NotificationItem.__super__.constructor.apply(this, arguments);
|
|
}
|
|
|
|
NotificationItem.prototype.urlRoot = com.podnoms.settings.urlRoot + "activity/";
|
|
|
|
NotificationItem.prototype.parse = function(model) {
|
|
model.human_date = moment(model.date).fromNow();
|
|
return model;
|
|
};
|
|
|
|
return NotificationItem;
|
|
|
|
})(Backbone.Model);
|
|
return NotificationItem;
|
|
});
|
|
|
|
}).call(this);
|