Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(directive-injector): wrong variable name in error thrown.
Browse files Browse the repository at this point in the history
Add proper type annotation that would have caught the typo.

Closes #1397
  • Loading branch information
rkirov authored and jbdeboer committed Aug 29, 2014
1 parent 73a3fe8 commit c533eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core_dom/directive_injector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class DirectiveInjector implements DirectiveBinder {
dynamic _new(Key k, List<Key> paramKeys, Function fn) {
if (_constructionDepth > MAX_CONSTRUCTION_DEPTH) {
_constructionDepth = NO_CONSTRUCTION;
throw new DiCircularDependencyError(key);
throw new DiCircularDependencyError(k);
}
bool isFirstConstruction = (_constructionDepth++ == NO_CONSTRUCTION);
var oldTag = _TAG_GET.makeCurrent();
Expand Down Expand Up @@ -479,7 +479,7 @@ class ComponentDirectiveInjector extends DirectiveInjector {
// For efficiency we run through the maximum resolving depth and unwind
// instead of setting 'resolving' key per type.
class DiCircularDependencyError extends ResolvingError {
DiCircularDependencyError(key) : super(key);
DiCircularDependencyError(Key key) : super(key);

// strips the cyclical part of the chain.
List<Key> get stripCycle {
Expand Down

0 comments on commit c533eb5

Please sign in to comment.