arma-server-web-admin/public/js/app/collections/servers.js
2015-12-29 16:50:34 +01:00

19 lines
473 B
JavaScript

define(function (require) {
"use strict";
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Server = require('app/models/server');
return Backbone.Collection.extend({
comparator: function (a, b) {
return a.get('title').toLowerCase().localeCompare(b.get('title').toLowerCase());
},
model: Server,
url: '/api/servers/'
});
});