I still have the problem, for example the below code works well in the source
version but fails in the build version, because the assert methods are not
recognized by the compiler to be included.

qx.Class.define("genpres.Application", {
  extend: qx.application.Standalone,
  implement:
[genpres.lib.interfaces.configuration.IDatabaseConfigViewFactory],
  include: [informedica.mixins.MMessageBus],
  construct: function() {
    this.base(arguments);
  },
  properties: {
    loggedIn: {
      check: 'Boolean',
      init: false
    }
  },
  members: {

    getDesktop: function() {
      if (!this.__desktop) {
        this._createDesktop();
      }
      this.assertInstance(this.__desktop, qx.ui.container.Stack, 'Desktop
should be instance of Stack');
      return this.__desktop;
    },
    getTaskbar: function() {
      if (!this.__taskbar) {
        this._createTaskbar();
      }
      this.assertInstance(this.__taskbar, qx.ui.toolbar.ToolBar, 'Taskbar
should be instance of Toolbar');
      return this.__taskbar;
    },
    getViewport: function() {
      var desktop, taskbar;
      if (!this.__viewport) {
        taskbar = this.getTaskbar();
        desktop = this.getDesktop();
        this._createViewport(desktop, taskbar);
      }
      this.assertInstance(this.__viewport, qx.ui.container.Composite,
'Viewport should be instance of Composite');
      return this.__viewport;
    },
    main: function() {
      var doc, viewport;
      this.base(arguments);
      if (qx.core.Environment.get("qx.debug")) {
        qx.log.appender.Native;
        qx.log.appender.Console;
      }
      this.setTheme();
      viewport = this.getViewport();
      this.getTaskbar().enableStartBtn(false);
      doc = this.getRoot();
      doc.add(viewport, {
        edge: 0
      });
      this.setUpControllers();
      this.subscribe('loggedin', this._onLoggedIn.bind(this,
genpres.lib.controller.login.Login));
    }
  }
});

Code has been omitted. But the problem is in the this.assert... methods.
These are missing in the build version.




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Build-optimization-issue-tp7586691p7586735.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to