Merge pull request #3019 from NativeScript/fix-flexbox-crash

Fix flexbox crash for iOS
This commit is contained in:
Panayot Cankov
2016-11-07 13:14:02 +02:00
committed by GitHub

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) {