this._super(element, model, template);
this.parent = parent;
- console.log("galley model", this.model);
+ console.log("gallery model", this.model);
this.model
.addObserver(this, 'data', this.modelDataChanged.bind(this))
modelStateChanged: function(property, value) {
if (value == 'loading') {
- this.parent.freeze('Ładowanie...');
+ // this.freeze('Ładowanie...');
} else {
- this.parent.unfreeze();
+ this.unfreeze();
}
},
$page.hide();
$('img', $page).unbind();
- $page.empty();
-
+ $page.empty();
this.setPageViewOffset($page, {x:0, y:0});
},