1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-13 13:05:00 -05:00
kaiwa/clientapp/models/messages.js

20 lines
405 B
JavaScript
Raw Normal View History

2013-08-29 23:38:28 -04:00
"use strict";
2013-08-20 13:45:06 -04:00
var BaseCollection = require('./baseCollection');
var Message = require('./message');
module.exports = BaseCollection.extend({
type: 'messages',
model: Message,
comparator: function (msg1, msg2) {
if (msg1.created < msg2.created) {
return -1;
}
if (msg1.created > msg2.created) {
return 1;
}
return 0;
}
});