Hi, Everyone!
I have a little problem.
This construction does work in "source" variant, but if I do "build" then
this code throw error.
*Source:*
__createAndAdd : function(caption, type) {
var clazz = qx.Class.getByName("aurore.ui." + type + "Page");
var newPage = new clazz(caption);
this.getMainContent().add(newPage);
this.getMainContent().setSelection([ newPage ]);
},
*Build:*
function (E, F) {
var H = qx.Class.getByName(g + F + m);
var G = new H(E);
this.getMainContent().add(G);
this.getMainContent().setSelection([G]);
}
Error: H is not a constructor
Watch expressions:
E = "Query"
G = undefined
H = undefined
g = "aurore.ui."
F = "Query"
m = "Page"
That same code *DOES* work, when I call another Page:
Watch expressions:
E = "Salary"
G = undefined
H = [Class aurore.ui.SimplePage]
g = "aurore.ui."
F = "Simple"
m = "Page"
Why getByName can find "aurore.ui.SimplePage", but can't
"aurore.ui.QueryPage"?
Help me, please, with this issue!
---
С уважением,
Jagget
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel