Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Pagecontainer: "navigate" handlers: Turn off scrolling, then change page
Browse files Browse the repository at this point in the history
Fixes gh-7148
  • Loading branch information
Gabriel Schulhof committed Feb 23, 2014
1 parent f029237 commit e306bb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/widgets/pagecontainer.js
Expand Up @@ -29,11 +29,6 @@ define( [
_create: function() {
this.setLastScrollEnabled = true;

// TODO consider moving the navigation handler OUT of widget into
// some other object as glue between the navigate event and the
// content widget load and change methods
this._on( this.window, { navigate: "_filterNavigateEvents" });

this._on( this.window, {
// disable an scroll setting when a hashchange has been fired,
// this only works because the recording of the scroll position
Expand All @@ -46,6 +41,11 @@ define( [
scrollstop: "_delayedRecordScroll"
});

// TODO consider moving the navigation handler OUT of widget into
// some other object as glue between the navigate event and the
// content widget load and change methods
this._on( this.window, { navigate: "_filterNavigateEvents" });

// TODO move from page* events to content* events
this._on({ pagechange: "_afterContentChange" });

Expand Down

0 comments on commit e306bb0

Please sign in to comment.