On Tue, Nov 25, 2008 at 9:53 PM, Kenny Tilton <[EMAIL PROTECTED]>wrote:
> Kenny Tilton wrote:
> > Kenny Tilton wrote:
> >
> >> I had a utiltity function I thought I could use several places so I
> >> just tossed it in at the toplevel. This works OK running against
> >> "source" but not "build".
> >>
> >> I suspect this is a JS-specific question, but I amjust trying to cover
> >> my bases before heading over to c.l.js.
> >>
> >> Is this toplevel deal verbotten in Javascript? I got away with it
> >> before, but I know these dynamic languages sometimes let things slide.
> >>
> >> Hmm. I'll try document.myFunc... hints welcome anyway.
> >
> >
> > Kenny! Try window.myFunc!!
> >
> > :)
>
> No, that did not work, nor did a global var used for something else.
> Anyway, workarounds have been found for everything.
>
Kenny, in the "build" version, unless you have disabled it, variables are
"optimized" into very short names. If your "top level function" wasn't run
through the build system, it wouldn't have had its name optimized, so it's
possible that the caller is calling a optimized name whereas the actual
function is still named by its unoptimized name.
You can determine if this is the issue by temporarily adding the following
OPTIMIZE line to the "let" section of your config.json file (assuming you're
using an up-to-date version of qooxdoo from trunk):
"let" :
{
...
"OPTIMIZE" : [],
...
}
This will remove all optimizations from the build version. Hopefully that
will help you discover what's going on.
Cheers,
Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel