Permalink
Browse files

Pagecontainer: "navigate" handlers: Turn off scrolling, then change page

Fixes gh-7148
  • Loading branch information...
gabrielschulhof committed Feb 22, 2014
1 parent f029237 commit e306bb05ac07970da5239c67c6626ea57ce90e2c
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/widgets/pagecontainer.js
@@ -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
@@ -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" });

0 comments on commit e306bb0

Please sign in to comment.