arma-server-web-admin/public/js/app/collections/missions.js

17 lines
372 B
JavaScript
Raw Normal View History

2014-04-04 09:28:33 +00:00
define(function (require) {
2015-12-29 15:48:32 +00:00
2014-04-04 09:28:33 +00:00
"use strict";
2015-12-29 15:48:32 +00:00
2014-04-04 09:28:33 +00:00
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Mission = require('app/models/mission');
2015-12-29 15:48:32 +00:00
2014-04-04 09:28:33 +00:00
return Backbone.Collection.extend({
2015-12-29 15:48:32 +00:00
comparator: 'name',
2014-04-04 09:28:33 +00:00
model: Mission,
url: '/api/missions/'
});
2015-12-29 15:48:32 +00:00
2014-04-04 09:28:33 +00:00
});