Make the channel argument to TextInput::new be optional, to support the signature expected by the unit tests.

This commit is contained in:
Avi Weinstock 2015-04-21 15:18:23 -04:00
parent 2d110e73b5
commit cf6aef5d51
4 changed files with 25 additions and 20 deletions

View file

@ -94,7 +94,7 @@ impl HTMLTextAreaElement {
let chan = document.window().root().r().constellation_chan();
HTMLTextAreaElement {
htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLTextAreaElement, localName, prefix, document),
textinput: DOMRefCell::new(TextInput::new(Lines::Multiple, "".to_owned(), chan)),
textinput: DOMRefCell::new(TextInput::new(Lines::Multiple, "".to_owned(), Some(chan))),
cols: Cell::new(DEFAULT_COLS),
rows: Cell::new(DEFAULT_ROWS),
value_changed: Cell::new(false),