Manually applying CSS in removed and now it is done once per cell. (#2174)

* Manually applying CSS in removed and now it is done once per cell.
Clearing bindingContext is now done in refresh method instead of preparing cell.
Obsolete isScrolling property on ListView.
Removed android scroll listener.
Added test for nulling cells bindingContext.
Uncommented few tests and made them work.
Fixed android ListView eachChildView to return the wrapping StackLayout so that Unloading now works as expected.
onUnload method in view-common now raise unloaded only if item isLoaded=true.

* Fix navigation path
This commit is contained in:
Hristo Hristov
2016-05-25 14:03:45 +03:00
parent 90f8b0da74
commit b0cff20450
6 changed files with 220 additions and 225 deletions

View File

@@ -571,12 +571,13 @@ export class View extends ProxyObject implements definition.View {
public _unloadEachChildView() {
if (this._childrenCount > 0) {
// iterate all children and call onLoaded on them first
var eachChild = function (child: View): boolean {
child.onUnloaded();
this._eachChildView((child) => {
if (child.isLoaded) {
child.onUnloaded();
}
return true;
}
this._eachChildView(eachChild);
});
}
}