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

fix($injector): remove INSTANTIATING entry when done. #5577

Closed
wants to merge 1 commit into from

Conversation

metamatt
Copy link
Contributor

getService flags services as INSTANTIATING while it calls their
provider factory, in order to detect circular dependencies. If
the service is instantiated correctly, the INSTANTIATING flag is
overwritten with the actual service. However, if the service is
not instantiated correctly, the INSTANTIATING flag should still
be removed, or all further requests for this service will be
mis-detected as a circular dependency.

Closes #4361.

getService flags services as INSTANTIATING while it calls their
provider factory, in order to detect circular dependencies. If
the service is instantiated correctly, the INSTANTIATING flag is
overwritten with the actual service. However, if the service is
not instantiated correctly, the INSTANTIATING flag should still
be removed, or all further requests for this service will be
mis-detected as a circular dependency.

Closes angular#4361.
@ghost ghost assigned tbosch and IgorMinar Dec 31, 2013
@IgorMinar IgorMinar closed this in 186a591 Dec 31, 2013
IgorMinar added a commit that referenced this pull request Dec 31, 2013
Add a missing test for fix that was merged via #5577
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
getService flags services as INSTANTIATING while it calls their
provider factory, in order to detect circular dependencies. If
the service is instantiated correctly, the INSTANTIATING flag is
overwritten with the actual service. However, if the service is
not instantiated correctly, the INSTANTIATING flag should still
be removed, or all further requests for this service will be
mis-detected as a circular dependency.

Closes angular#4361
Closes angular#5577
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
Add a missing test for fix that was merged via angular#5577
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
getService flags services as INSTANTIATING while it calls their
provider factory, in order to detect circular dependencies. If
the service is instantiated correctly, the INSTANTIATING flag is
overwritten with the actual service. However, if the service is
not instantiated correctly, the INSTANTIATING flag should still
be removed, or all further requests for this service will be
mis-detected as a circular dependency.

Closes angular#4361
Closes angular#5577
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
Add a missing test for fix that was merged via angular#5577
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Circular dependency if exception during resource init
3 participants