Skip to content

Commit

Permalink
#2469 Fix issue with get animation when cache is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Jul 10, 2015
1 parent c55ed42 commit a942a27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/definitions/modules/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,10 @@ $.fn.transition = function() {
;
},
currentAnimation: function() {
return module.cache.animation || false;
return (module.cache && module.cache.animation !== undefined)
? module.cache.animation
: false
;
},
currentDirection: function() {
return module.is.inward()
Expand Down

0 comments on commit a942a27

Please sign in to comment.