arma-server-web-admin/public/js/app/models/mod.js

18 lines
328 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');
2014-04-08 20:59:59 +00:00
2014-02-09 03:19:48 +00:00
return Backbone.Model.extend({
defaults: {
2014-04-08 20:59:59 +00:00
name: ''
2014-05-06 23:35:44 +00:00
},
2015-04-07 06:12:42 +00:00
idAttribute: 'name',
2014-05-06 23:35:44 +00:00
urlRoot: '/api/mods/',
2014-02-09 03:19:48 +00:00
});
2014-04-08 20:59:59 +00:00
});