Hi Jim, > I think I found it: > > APPLICATION_OPTIMIZE_STRINGS = false > APPLICATION_OPTIMIZE_VARIABLES = false
Yes these settings do disable the optimizations. But just out of curiosity: What kind of problems are you experiencing? I ask, because with the APPLICATION_OPTIMIZE_STRINGS setting turned on I never experienced any problems...or did I ? ;) The APPLICATION_OPTIMIZE_VARIABLES setting can be "dangerous" if you use the "eval()" ...which you should avoid as often as you can (see discussion below). /Peter > > also, for anyone else looking for MAKE info, check out the Wiki at: > > http://qooxdoo.org/documentation/user_manual/application_mk > > Jim > www.D4PHP.org > www.D4PHP-Hosting.com > > > On 5/8/07, Jim Hunter <[EMAIL PROTECTED]> wrote: >> >> These changes worked for that piece of code. But I am running into many >> other places where optimization is causing issues. Is there a setting >> I can >> provide that will NOT optimize the code? I am just making a beta >> version so >> I don't care if it's not as small or 'tight' as I can get it, I just want >> all my code in one file. I searched the archives but didn't find it. >> >> Thanks in advance for the assistance on this. >> >> Jim >> >> >> On 5/8/07, Fabian Jakobs <[EMAIL PROTECTED] > wrote: >> > >> > Peter Schneider schrieb: >> > > Hi Jim, >> > > >> > > it's the call to eval() that's causing the trouble. >> > > (sorry can't find the documentation to this issue...) >> > > The issue is the line (as you stated): >> > > eval('var f_' + x + '_' + y + ' = new >> qx.ui.tree.TreeFile(newValues[x][y])'); >> > >> > > >> > > Due to the fact that the "variable optimization" replaced the 'x' and >> > 'y' by >> > > '$n' and '$p' the code to be eval'd will get something like (for >> index >> > [0][0]): >> > > var f_0_1 = new qx.ui.tree.TreeFile(newValues[x][y]); >> > > ...you see 'x' and 'y' are not known here. >> > > >> > > To bad, that I can't find the documentation on the qooxdoo web-site >> > about this >> > > issue... >> > > There's something like '--optimize-variables-skip-prefix=xxx' to >> > prevent this. >> > > You can define a variable prefix with this option to tell the >> > optimizer to not >> > > touch these variables. So if you set the option >> > > --optimize-variables-skip-prefix=donttouch_ >> > > in the makefile and your code would be altered that those 'x' and >> 'y's >> > would be >> > > 'donttouch_x' and 'donttouch_y' it should work. >> > > >> > >> > Yes it't the local variable optimizer, which breaks your code. Since >> the >> > generator is not able to evaluate the string in the eval statement it >> > does not rename those variables. In most cases evals like the one you >> > use can be replaced by equivalent JavaSctipt code. You can rewrite your >> > code like this: >> > >> > before: >> > -> eval('var f_' + x + '_' + y + ' = new >> > qx.ui.tree.TreeFile(newValues[x][y])'); >> > if (indx == current) >> > { >> > currentTreeItem = eval('f_' + x + '_' + y); >> > } >> > >> > >> > after: >> > var treeItems = {}; >> > treeItems['f_' + x + '_' + y] = new >> > qx.ui.tree.TreeFile(newValues[x][y]); >> > { >> > currentTreeItem = treeItems['f_' + x + '_' + y]; >> > } >> > >> > >> > This will not only make the variable optimizer happy, it is also much >> > faster than the old code and errors can be detected more easily. >> > >> > Hope this helps, >> > Best Fabian >> > >> > >> > >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > _______________________________________________ >> > qooxdoo-devel mailing list >> > qooxdoo-devel@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > >> >> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- Dipl.-Ing. (FH) Peter Schneider | TIS GmbH | Software-Entwickler Barloer Weg 188-190 | D-46397 Bocholt fon: +49 2871 2722-0 | fax: +49 2871 2722-99 [EMAIL PROTECTED] | www.tis-gmbh.de ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel