@@ -28,9 +28,6 @@ type Application struct {
cbid js.Value
}
-// Application singleton
-var app *Application
-
// App returns the Application singleton, creating it the first time.
func App() *Application {
@@ -32,9 +32,6 @@ type Application struct {
frameDelta time.Duration // Duration of last frame
@@ -5,6 +5,9 @@
// Package app implements a cross-platform G3N app.
package app
+// Application singleton
+var app *Application
+
// OnExit is the event generated by Application when the user
// tries to close the window (desktop) or the Exit() method is called.
const OnExit = "app.OnExit"