/pollapli/ui/static/pollapli/views/environment_view.js
JavaScript | 26 lines | 21 code | 3 blank | 2 comment | 1 complexity | 9e3d601464891396888516a9e7237c82 MD5 | raw file
- var EnvironmentView= Backbone.View.extend
- (
- {
- //
- initialize: function()
- {
- this.template=this.options.template;
- if (this.template==null)
- {
- this.template=pollapli.ui.templates["environments_tmpl_simple"];
- }
-
- //_.bindAll(this, "render", "add");
- _.bindAll( this, 'render' )
- this.collection.bind("all", this.render,this);
- this.render();
-
- },
- render: function()
- {
- $(this.el).jqotesub(this.template, this.collection.toJSON());
- return this;
- }
- }
- );