Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Change location change #4

Merged
merged 2 commits into from
Dec 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions dst/angular-modal-service.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dst/angular-modal-service.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dst/angular-modal-service.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dst/angular-modal-service.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/angular-modal-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ module.factory('ModalService', ['$animate', '$document', '$compile', '$controlle

// Create a new scope for the modal.
var modalScope = (options.scope || $rootScope).$new();
var rootScopeOnClose = $rootScope.$on('$locationChangeSuccess', function () {
cleanUpClose($q.reject(new Error('Modal closed due to location change.')))
var rootScopeOnClose = $rootScope.$on('$locationChangeSuccess', function() {
cleanUpClose();
});

// Create the inputs object to the controller - this will include
Expand Down