-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaged qooxdoo.js #6
Comments
If you look at the file "Application.ts", you will see at the bottom the following line: qx.registry.registerMainMethod(qooxdooMain); You will observe, that it sits outside any class or function so that it will be executed when the transpiled Javascript is loaded. Just make sure the qooxdoo.js is loaded first. |
The question is not when this function will be called. For example, I want to use qooxdoo mobile with typescript. In that case, I need qooxdoo.js with another implementation of qx.registry.registerMainMethod. So, the question is how to white the bootstrap similar to registerMainMethod. |
Found the solution. Thanks to JSBeautify :-) Application.js: var a = "__app",
b = "__method",
c = "base.Application";
qx.registry = {
registerMainMethod: function(d) {
qx.registry[b] = d;
var e = qx.registry[a];
if (e) d(e);
},
registerApp: function(f) {
qx.registry[a] = f;
var g = qx.registry[b];
if (g) g(f);
}
}; plus in main: qx.registry.registerApp(this);
qx.ui.basic.Atom;
qx.ui.basic.Image;
qx.ui.basic.Label;
// And so on... |
See you figured it out your self. But indeed there are two parts:
|
Thank you for that project. Qooxdoo development is much easier with typescript.
Can you give some information about the building of qooxdoo.js lib? I can make similar package using source-hybrid goal from some application for example. But qx.registry.registerMainMethod is not a qooxdoo function. How this function works?
The text was updated successfully, but these errors were encountered: