web-apps/apps/common/main/lib/collection/HistoryVersions.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

31 lines
642 B
JavaScript

/**
* User: Julia.Radzhabova
* Date: 05.03.15
* Time: 17:05
*/
if (Common === undefined)
var Common = {};
Common.Collections = Common.Collections || {};
define([
'underscore',
'backbone',
'common/main/lib/model/HistoryVersion'
], function(_, Backbone){
'use strict';
Common.Collections.HistoryVersions = Backbone.Collection.extend({
model: Common.Models.HistoryVersion,
findRevision: function(revision) {
return this.findWhere({revision: revision});
},
findRevisions: function(revision) {
return this.where({revision: revision});
}
});
});