template: null,
overlayClass: 'view-overlay',
overlay: null,
-
+ id: null,
+
init: function(element, model, template) {
this.element = $(element);
this.model = model;
if (this.template) {
this.element.html(render_template(this.template, {}));
}
+
+ View.lastId = View.lastId + 1;
+ this.id = 'view-' + View.lastId;
},
-
+
+ // Identyczność
+ hash: function() {
+
+ },
+
frozen: function() {
return !!this.overlay;
},
this.element.contents().remove();
}
});
+
+
+View.lastId = 0;