Skip to content

Commit

Permalink
Merge pull request #185 from dansterrett/master
Browse files Browse the repository at this point in the history
Added a fallback for browsers that don't support css transitions (just on the push and pop transitions).

Adding for use with UCP.
  • Loading branch information
Nicholas W. Watson committed Dec 20, 2012
2 parents c4d29cd + ffe9918 commit 9c69557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pushpop.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ Pushpop.ViewStack.prototype = {

$oldActiveViewElement.addClass('transition');
$newActiveViewElement.addClass('transition');

// If the browser doesn't support css transitions, explicitely trigger the transitionend event
if (!Modernizr.csstransitions) $newActiveViewElement.trigger('transitionend');
},

/**
Expand Down Expand Up @@ -444,6 +447,9 @@ Pushpop.ViewStack.prototype = {

$oldActiveViewElement.addClass('transition');
$newActiveViewElement.addClass('transition');

// If the browser doesn't support css transitions, explicitely trigger the transitionend event
if (!Modernizr.csstransitions) $newActiveViewElement.trigger('transitionend');
},

/**
Expand Down

0 comments on commit 9c69557

Please sign in to comment.