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

19 lines
473 B
JavaScript
Raw Normal View History

2014-02-09 03:19:48 +00:00
define(function (require) {
2014-04-08 20:59:59 +00:00
2014-02-09 03:19:48 +00:00
"use strict";
2014-04-08 20:59:59 +00:00
2014-02-09 03:19:48 +00:00
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Server = require('app/models/server');
2014-04-08 20:59:59 +00:00
2014-02-09 03:19:48 +00:00
return Backbone.Collection.extend({
2015-12-29 15:48:32 +00:00
comparator: function (a, b) {
return a.get('title').toLowerCase().localeCompare(b.get('title').toLowerCase());
},
2014-02-09 03:19:48 +00:00
model: Server,
url: '/api/servers/'
});
2014-04-08 20:59:59 +00:00
});