Files
dss/static/js/app/models/activity/activityItem.js
2013-07-02 21:24:13 +01:00

31 lines
1013 B
JavaScript
Executable File

// Generated by CoffeeScript 1.6.2
(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, _ref;
ActivityItem = (function(_super) {
__extends(ActivityItem, _super);
function ActivityItem() {
_ref = ActivityItem.__super__.constructor.apply(this, arguments);
return _ref;
}
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);