chore(packaging): fix warnings in forms

This commit is contained in:
Yegor Jbanov 2015-02-05 15:19:15 -08:00
parent 50b553964d
commit d144e9a345
2 changed files with 4 additions and 9 deletions

View File

@ -31,12 +31,14 @@ export class ControlDecorator {
_updateDOM() { _updateDOM() {
// remove it once all DOM write go throuh a queue // remove it once all DOM write go throuh a queue
if (isPresent(this._controlName)) { if (isPresent(this._controlName)) {
this._el.domElement.value = this._control().value; var inputElem: any = this._el.domElement;
inputElem.value = this._control().value;
} }
} }
_updateControl() { _updateControl() {
this._control().value = this._el.domElement.value; var inputElem: any = this._el.domElement;
this._control().value = inputElem.value;
} }
_control() { _control() {

View File

@ -27,13 +27,6 @@ export function main() {
}); });
} }
var compiler;
beforeEach(() => {
compiler = new Compiler(dynamicChangeDetection, null, new DirectiveMetadataReader(),
new Parser(new Lexer()), new CompilerCache());
});
describe("integration tests", () => { describe("integration tests", () => {
it("should initialize DOM elements with the given form object", (done) => { it("should initialize DOM elements with the given form object", (done) => {
var ctx = new MyComp(new ControlGroup({ var ctx = new MyComp(new ControlGroup({