Skip to content

Commit

Permalink
android chrome 在页面初次加载时不触发popstate,补充处理 fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey- committed Nov 9, 2015
1 parent 817bd9f commit ce1d85c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
//加载一个页面,传入的参数是页面id或者url
Router.prototype.loadPage = function(url) {

// android chrome 在移动端加载页面时不会触发一次‘popstate’事件
this.newLoaded && (this.newLoaded = false)
this.getPage(url, function(page) {

var pageid = this.getCurrentPage()[0].id;
Expand Down

0 comments on commit ce1d85c

Please sign in to comment.