Skip to content

Commit 947d929

Browse files
committed
Moved the call to listen for the statusTap to after the platform ready event fires
1 parent 2832978 commit 947d929

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: js/angular/service/platform.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ IonicModule
164164
var q = $q.defer();
165165

166166
ionic.Platform.ready(function() {
167+
168+
window.addEventListener('statusTap', function() {
169+
$ionicScrollDelegate.scrollTop(true);
170+
});
171+
167172
q.resolve();
168173
cb && cb();
169174
});
@@ -172,10 +177,6 @@ IonicModule
172177
}
173178
};
174179

175-
window.addEventListener('statusTap', function() {
176-
$ionicScrollDelegate.scrollTop(true);
177-
});
178-
179180
return self;
180181
}]
181182
};

0 commit comments

Comments
 (0)