Skip to content

Instantly share code, notes, and snippets.

@wbashir
Created August 31, 2013 15:59
Show Gist options
  • Save wbashir/6399123 to your computer and use it in GitHub Desktop.
Save wbashir/6399123 to your computer and use it in GitHub Desktop.
Scroll - Top IronRouter
Deps.autorun(function () {
var current = Router.current();
Deps.afterFlush(function () {
$('.content-inner').scrollTop(0);
$(window).scrollTop(0);
});
});
https://github.com/EventedMind/iron-router/issues/96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment