PageRenderTime 56ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/pollapli/ui/static/pollapli/views/page_view.js

https://bitbucket.org/kaosat_dev/pollapli
JavaScript | 23 lines | 20 code | 3 blank | 0 comment | 1 complexity | 42ac105f0279d39dbf617ddbed61cfeb MD5 | raw file
  1. var PageView= Backbone.View.extend
  2. (
  3. {
  4. initialize: function()
  5. {
  6. this.template=this.options.template;
  7. if (this.template==null)
  8. {
  9. this.template=pollapli.ui.templates["basePage_tmpl"];
  10. }
  11. this.collection.bind("all", this.render,this);
  12. this.render();
  13. },
  14. render: function()
  15. {
  16. $(this.el).jqotesub(this.template, this.collection.toJSON());
  17. return this;
  18. }
  19. }
  20. );