Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
done
  • Loading branch information
thebigredgeek committed Aug 29, 2014
commit e12e5bb0b67dbfd89fc031a80ee1190821712fff
2 changes: 1 addition & 1 deletion src/ng/directive/ngSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ var ngSwitchDirective = ['$animate', function($animate) {
selectedScopes[i].$destroy();
previousElements[i] = selected;
$animate.leave(selected).then(function() {
previousElements.splice(i, 1);
previousElements[i] ? previousElements.splice(i, 1) : angular.noop();
});
}

Expand Down