Oh, I'm confused. Should I use "use" or "require"? Both of them works.

---
С уважением,
Jagget


On 29 March 2011 17:19, thron7 <[email protected]> wrote:

>
>
> On 03/29/2011 02:40 PM, Derrell Lipman wrote:
> >
> > On Tue, Mar 29, 2011 at 08:28, Jagget <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hi, Everyone!
> >     I have a little problem.
> >     This construction does work in "source" variant, but if I do "build"
> >     then this code throw error.
> >
> >
> > It sounds like aurore.ui.QueryPage is not referenced anyplace else in
> > your app, so the build version does not include it. You can confirm that
> > by turning on debugging when you do the build (with -d I think) and
>
> -v
>
> > watch whether it includes that class. Assuming it does not, you can add
> > a "#require aurore.ui.QueryPage" in the comment at the top of the source
>
> #use(aurore.ui.QueryPage)
>
> > file to force it to be included, and rebuild.
> >
> > Derrell
> >
> >
> >     *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]
> >     <mailto:[email protected]>
> >     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > 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
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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

Reply via email to