createWindow should return Window instance
This commit is contained in:
@@ -137,7 +137,7 @@ class Application extends Module {
|
||||
* Creates a new Window and adds it to the Application
|
||||
* @param window A Window object to add
|
||||
*/
|
||||
public function createWindow (attributes:WindowAttributes):Void {
|
||||
public function createWindow (attributes:WindowAttributes):Window {
|
||||
|
||||
var window = new Window (this, attributes);
|
||||
|
||||
@@ -180,6 +180,8 @@ class Application extends Module {
|
||||
|
||||
onWindowCreate.dispatch (window);
|
||||
|
||||
return window;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user