Add default renderer upon adding window if it does not have one

This commit is contained in:
Joshua Granick
2015-08-20 08:07:07 -07:00
parent 4c0d09368e
commit 8ebb3733b3

View File

@@ -143,6 +143,13 @@ class Application extends Module {
window.onTextEdit.add (onTextEdit.bind (window));
window.onTextInput.add (onTextInput.bind (window));
if (window.currentRenderer == null) {
var renderer = new Renderer (window);
addRenderer (renderer);
}
window.create (this);
windows.set (window.id, window);