Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(interim-element): cancel was emitted as list and not as stack
Browse files Browse the repository at this point in the history
* Cancel called shift which slices the first element in the Array instead of pop who take the last and also happens on `hide`

fixes #6912

Closes #7053
  • Loading branch information
EladBezalel authored and ThomasBurleson committed Mar 1, 2016
1 parent a5a0eaf commit 6d39c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/services/interimElement/interimElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function InterimElementProvider() {
*
*/
function cancel(reason, options) {
var interim = stack.shift();
var interim = stack.pop();
if ( !interim ) return $q.when(reason);

interim
Expand Down

0 comments on commit 6d39c21

Please sign in to comment.