fix(analzyer): removed unused imports

This commit is contained in:
vsavkin 2015-06-05 22:30:52 -07:00
parent c564475251
commit 902759e1c7
3 changed files with 2 additions and 4 deletions

View File

@ -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';
@ -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) {

View File

@ -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';

View File

@ -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';