console.log("init for gallery");
this._super(element, model, template);
this.parent = parent;
+
+ console.log("galley model", this.model);
this.model
.addObserver(this, 'data', this.modelDataChanged.bind(this))
render: function()
{
- console.log('rendering:', this._className);
+ if(!this.model) return;
/* first unbind all */
if(this.$nextButton) this.$nextButton.unbind();
if(this.$zoomResetButton) this.$zoomResetButton.unbind();
/* render */
- this.element.html(render_template(this.template, this));
+ this._super();
/* fetch important parts */
this.$pageListRoot = $('.image-gallery-page-list', this.element);