Uproszczenie implementacji wzorca observer.
[redakcja.git] / project / static / js / views / html.js
1 /*global View render_template panels */
2 var HTMLView = View.extend({
3   element: null,
4   model: null,
5   template: 'html-view-template',
6   
7   init: function(element, model, template) {
8     this.element = $(element);
9     this.model = model;
10     this.template = template || this.template;
11     this.element.html(render_template(this.template, {}));
12   },
13   
14   dispose: function() {
15     this._super();
16   }
17 });
18
19 // Register view
20 panels.push({name: 'html', klass: HTMLView});