Skip to content

Instantly share code, notes, and snippets.

@gimmi
Created August 25, 2011 10:52
Show Gist options
  • Save gimmi/1170427 to your computer and use it in GitHub Desktop.
Save gimmi/1170427 to your computer and use it in GitHub Desktop.
qx mixin initialization error
qx.Class.define("MyClass", {
extend: qx.core.Object,
include: [qx.ui.core.MBlocker],
construct: function () {
this.base(arguments);
this.setBlockerColor("#D5D5D5"); // method from mixin
this.setBlockerOpacity(0.5); // method from mixin
}
});
var instance = new MyClass(); // throws error because qx.ui.core.MBlocker.construct will be called AFTER MyClass.construct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment