You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create() {
var div = new DivElement();
div.nodes.add(new Text("Username"));
Element elem2 = new InputElement();
elem2.id = 'chat-username';
elem2.type = 'text'; // warning here, which is correct
div.elements.add(elem2);
parent.elements.add(div);
}
}
create() {
var div = new DivElement();
div.nodes.add(new Text("Username"));
elem = new InputElement();
elem.id = 'chat-username';
elem.type = 'text'; // there's still a warning here
div.elements.add(elem);
parent.elements.add(div);
}
}
Still has the warning.
Closing and opening the file makes the warning disappear.
Using editor Version 0.1.0.201206061627, Build 8370
After changing some code that had a warning to code that has no warnings, a warning remains and does not disappear.
This code:
class UsernameInput extends View {
InputElement elem;
UsernameInput(Element parent) : super(parent);
create() {
var div = new DivElement();
div.nodes.add(new Text("Username"));
Element elem2 = new InputElement();
elem2.id = 'chat-username';
elem2.type = 'text'; // warning here, which is correct
div.elements.add(elem2);
parent.elements.add(div);
}
}
When changed to:
class UsernameInput extends View {
InputElement elem;
UsernameInput(Element parent) : super(parent);
create() {
var div = new DivElement();
div.nodes.add(new Text("Username"));
elem = new InputElement();
elem.id = 'chat-username';
elem.type = 'text'; // there's still a warning here
div.elements.add(elem);
parent.elements.add(div);
}
}
Still has the warning.
Closing and opening the file makes the warning disappear.
See attached screenshots.
Attachments:
before.png (66.48 KB)
after.png (63.68 KB)
The text was updated successfully, but these errors were encountered: