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
  • Loading branch information
EladBezalel committed Feb 26, 2016
1 parent db763bc commit 5d2a6ce
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 5d2a6ce

Please sign in to comment.