/pollapli/ui/static/pollapli/views/page_view.js
JavaScript | 23 lines | 20 code | 3 blank | 0 comment | 1 complexity | 42ac105f0279d39dbf617ddbed61cfeb MD5 | raw file
- var PageView= Backbone.View.extend
- (
- {
- initialize: function()
- {
- this.template=this.options.template;
- if (this.template==null)
- {
- this.template=pollapli.ui.templates["basePage_tmpl"];
- }
-
- this.collection.bind("all", this.render,this);
- this.render();
-
- },
- render: function()
- {
- $(this.el).jqotesub(this.template, this.collection.toJSON());
- return this;
- }
-
- }
- );