PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Oro/Bundle/WindowsBundle/Resources/public/js/dialog/state/collection.js

https://github.com/diimpp/platform
JavaScript | 18 lines | 10 code | 2 blank | 6 comment | 0 complexity | aa4b977e0d7b97f3052450d2ff5b86a4 MD5 | raw file
  1. /*global define*/
  2. define(['backbone', './model'
  3. ], function (Backbone, StateModel) {
  4. 'use strict';
  5. /**
  6. * @export orowindows/js/dialog/state/collection
  7. * @class orowindows.dialog.state.Collection
  8. * @extends Backbone.Collection
  9. */
  10. return Backbone.Collection.extend({
  11. model: StateModel,
  12. url: function () {
  13. return this.model.prototype.urlRoot;
  14. }
  15. });
  16. });