class MyEntryPoint extends EntryPoint {
def onModuleLoad {
val xml = <b><i>text</i>text</b>
RootPanel.get().add(new Label(xml.toString))
}
}
DevMode works. But when compiled to JS
IE says "Stack overflow at line..."
Chrome says "Uncaught RangeError: Maximum call stack size exceeded"
Looks like the problem is inside xml.toString
But this works fine everywhere:
class MyEntryPoint extends EntryPoint {
def onModuleLoad {
val xml = <b>text</b>
RootPanel.get().add(new Label(xml.toString))
}
}