PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/pollapli/ui/static/pollapli/models/device_models.js

https://bitbucket.org/kaosat_dev/pollapli
JavaScript | 31 lines | 14 code | 5 blank | 12 comment | 0 complexity | 6ea29e15257fed41052bf421893c8eed MD5 | raw file
  1. var Device = Backbone.Model.extend(
  2. {
  3. url : pollapli.mainUrl+'rest/devices/b6065cf6-1a19-4c94-801f-521fd0fc80ca',
  4. initialize: function()
  5. {
  6. },
  7. /*defaults:
  8. {
  9. name: "Default Device",
  10. description: "Just a device",
  11. type : "",
  12. }*/
  13. });
  14. var DeviceCollection = Backbone.Collection.extend(
  15. {
  16. model : Device,
  17. //url: url:pollapli.mainUrl+'rest/devices',
  18. initialize: function()
  19. {
  20. //_.bindAll(this, "justATest");
  21. },
  22. /*parse: function(response)
  23. {
  24. return response.items;
  25. },*/
  26. });