Fix flexbox crash for iOS

This commit is contained in:
PanayotCankov
2016-11-04 11:30:21 +02:00
parent 350498ef7b
commit f79ed04671

View File

@ -220,7 +220,7 @@ export class FlexboxLayout extends FlexboxLayoutBase {
private get _isOrderChangedFromLastMeasurement(): boolean {
let childCount = this.getChildrenCount();
if (this._orderCache === null) {
if (!this._orderCache) {
this._orderCache = [];
}
if (this._orderCache.length !== childCount) {