Permalink
Browse files

Revert "bugfix for issue #1673, using helper function from previous b…

…ugfix for issue #455"

This reverts commit 08e71fb.
  • Loading branch information...
1 parent 08e71fb commit 2f99eacf845933dcda61b75c9f87eacf6b58c25e Tobias Bosch committed Jun 22, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −8 js/jquery.mobile.core.js
@@ -93,14 +93,7 @@
//scroll page vertically: scroll to 0 to hide iOS address bar, or pass a Y value
silentScroll: function( ypos ) {
- if (typeof ypos != 'number') {
- // Sometimes this functions gets an argument which is no number at all...
- ypos = 0;
- }
- if (ypos==0 && $.mobile.browser.android) {
- // on Android we need ypos=1 to hide the addressbar
- ypos = 1;
- }
+ ypos = ypos || 0;
// prevent scrollstart and scrollstop events
$.event.special.scrollstart.enabled = false;

0 comments on commit 2f99eac

Please sign in to comment.