Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor cleanup

  • Loading branch information...
commit babbdefd4b7c9f7925ac2befb6c3e5e3076a5870 1 parent 7123df0
wpbasti authored
Showing with 5 additions and 30 deletions.
  1. +5 −30 qooxdoo/frontend/framework/source/class/qx/core/Init.js
View
35 qooxdoo/frontend/framework/source/class/qx/core/Init.js
@@ -122,48 +122,23 @@ qx.Proto.getApplicationInstance = function()
---------------------------------------------------------------------------
*/
-qx.Proto.defineInitialize = function(vFunc)
-{
- if (!this.getApplication()) {
- this.setApplication(qx.component.DummyApplication);
- }
-
+qx.Proto.defineInitialize = function(vFunc) {
this.getApplicationInstance().initialize = vFunc;
}
-qx.Proto.defineMain = function(vFunc)
-{
- if (!this.getApplication()) {
- this.setApplication(qx.component.DummyApplication);
- }
-
+qx.Proto.defineMain = function(vFunc) {
this.getApplicationInstance().main = vFunc;
}
-qx.Proto.defineFinalize = function(vFunc)
-{
- if (!this.getApplication()) {
- this.setApplication(qx.component.DummyApplication);
- }
-
+qx.Proto.defineFinalize = function(vFunc) {
this.getApplicationInstance().finalize = vFunc;
}
-qx.Proto.defineClose = function(vFunc)
-{
- if (!this.getApplication()) {
- this.setApplication(qx.component.DummyApplication);
- }
-
+qx.Proto.defineClose = function(vFunc) {
this.getApplicationInstance().close = vFunc;
}
-qx.Proto.defineTerminate = function(vFunc)
-{
- if (!this.getApplication()) {
- this.setApplication(qx.component.DummyApplication);
- }
-
+qx.Proto.defineTerminate = function(vFunc) {
this.getApplicationInstance().terminate = vFunc;
}
Please sign in to comment.
Something went wrong with that request. Please try again.