From 7158bcd260c113581ea5fd185f5665b2ac6dd49e Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Fri, 30 Oct 2015 10:13:29 -0500 Subject: [PATCH] Wrap Zone --- ionic/components/content/content.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ionic/components/content/content.ts b/ionic/components/content/content.ts index e265016a47..800b7958ea 100644 --- a/ionic/components/content/content.ts +++ b/ionic/components/content/content.ts @@ -61,13 +61,13 @@ export class Content extends Ion { super.onInit(); this.scrollElement = this.getNativeElement().children[0]; - this._zone.runOutsideAngular(() => { - setTimeout(() => { - if(!this.featureDetect.has('sticky')) { + if(!this.featureDetect.has('sticky')) { + this._zone.runOutsideAngular(() => { + setTimeout(() => { this._sticky = StickyPoly(this.scrollElement); - } + }); }); - }); + } } /**