chore(packaging): fix warnings in forms
This commit is contained in:
parent
50b553964d
commit
d144e9a345
|
@ -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() {
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue