Files
dss/static/js/app/models/activity/activityItem.js
2013-12-16 22:31:35 +00:00

30 lines
986 B
JavaScript
Executable File

// 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 ActivityItem;
ActivityItem = (function(_super) {
__extends(ActivityItem, _super);
function ActivityItem() {
return ActivityItem.__super__.constructor.apply(this, arguments);
}
ActivityItem.prototype.urlRoot = com.podnoms.settings.urlRoot + "activity/";
ActivityItem.prototype.parse = function(model) {
model.human_date = moment(model.date).fromNow();
return model;
};
return ActivityItem;
})(Backbone.Model);
return ActivityItem;
});
}).call(this);