Skip to content

Commit

Permalink
Moved the call to listen for the statusTap to after the platform read…
Browse files Browse the repository at this point in the history
…y event fires
  • Loading branch information
danbucholtz committed Apr 22, 2016
1 parent 2832978 commit 947d929
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/angular/service/platform.js
Expand Up @@ -164,6 +164,11 @@ IonicModule
var q = $q.defer();

ionic.Platform.ready(function() {

window.addEventListener('statusTap', function() {
$ionicScrollDelegate.scrollTop(true);
});

q.resolve();
cb && cb();
});
Expand All @@ -172,10 +177,6 @@ IonicModule
}
};

window.addEventListener('statusTap', function() {
$ionicScrollDelegate.scrollTop(true);
});

return self;
}]
};
Expand Down

0 comments on commit 947d929

Please sign in to comment.