Skip to content

Commit

Permalink
fix(analzyer): removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Jun 9, 2015
1 parent c564475 commit 902759e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {PromiseWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
import {StringMapWrapper, List, ListWrapper} from 'angular2/src/facade/collection';
import {isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
import {isPresent, isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
import {Directive} from 'angular2/src/core/annotations/decorators';
import {FORWARD_REF, Binding} from 'angular2/di';
import {ControlDirective} from './control_directive';
Expand Down Expand Up @@ -97,7 +97,7 @@ export class TemplateDrivenFormDirective extends ControlContainerDirective imple

_findContainer(path: List<string>): ControlGroup {
ListWrapper.removeLast(path);
return <ControlGroup>this.form.find(path);
return ListWrapper.isEmpty(path) ? this.form : <ControlGroup>this.form.find(path);
}

_later(fn) {
Expand Down
1 change: 0 additions & 1 deletion modules/examples/src/model_driven_forms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
FormBuilder
} from 'angular2/forms';

import {ObservableWrapper} from 'angular2/src/facade/async';
import {RegExpWrapper, print, isPresent} from 'angular2/src/facade/lang';

import {reflector} from 'angular2/src/reflection/reflection';
Expand Down
1 change: 0 additions & 1 deletion modules/examples/src/template_driven_forms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
TemplateDrivenFormDirective
} from 'angular2/forms';

import {ObservableWrapper} from 'angular2/src/facade/async';
import {RegExpWrapper, print, isPresent} from 'angular2/src/facade/lang';

import {reflector} from 'angular2/src/reflection/reflection';
Expand Down

0 comments on commit 902759e

Please sign in to comment.