Yes, it's #1171
2008/8/14 Fabian Jakobs <[EMAIL PROTECTED]>: > Petr Kobalíček schrieb: >> Hi Guilherme, >> >> I have another way :-) >> >> max : function(arr) >> { >> var i, len=arr.length, result = arr[0]; >> for (i = 1; i < len; i++) if (arr[i] > result) result = arr[i]; >> return result; >> } >> >> min : function(arr) >> { >> var i, len=arr.length, result = arr[0]; >> for (i = 1; i < len; i++) if (arr[i] < result) result = arr[i]; >> return result; >> } >> >> arr[0] will give undefined if arrray length is zero and for loop will >> be never executed. This code is my current thinking, not tested but >> should work:) >> > > Hi Petr, > > could you open a bug report for this. This should definitively be fixed > in the framework. > > Best Fabian > > -- > Fabian Jakobs > JavaScript Framework Developer > > 1&1 Internet AG > Brauerstraße 48 > 76135 Karlsruhe > > Amtsgericht Montabaur HRB 6484 > > Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas > Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, > Achim Weiss > Aufsichtsratsvorsitzender: Michael Scheeren > > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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