Skip to content

Commit

Permalink
fix missing prevState in scrollMap
Browse files Browse the repository at this point in the history
  • Loading branch information
homerjam committed Apr 8, 2016
1 parent 14d467d commit a41f933
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion angular-gsapify-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
if (prevState) {
var prevStateKey = JSON.stringify(prevState);

if (currentStateKey === prevStateKey) {
if (scrollMap[prevStateKey] && currentStateKey === prevStateKey) {
$window.scrollTo(scrollMap[prevStateKey].x, scrollMap[prevStateKey].y);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-gsapify-router",
"version": "0.0.32",
"version": "0.0.33",
"description": "Angular UI-Router animation directive allowing configuration of state transitions using GSAP",
"main": "angular-gsapify-router.js",
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-gsapify-router",
"version": "0.0.32",
"version": "0.0.33",
"description": "Angular UI-Router animation directive allowing configuration of state transitions using [GSAP](http://www.greensock.com/gsap-js/)",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit a41f933

Please sign in to comment.