On Wed, Mar 17, 2010 at 14:02, Dave Baggett <[email protected]> wrote:
>
>
> Derrell Lipman wrote:
> >
> > On Wed, Mar 17, 2010 at 13:24, Dave Baggett <[email protected]> wrote:
> > In this case, even my method renaming scheme wouldn't have solved the
> > problem. Who would even consider that a TabView changing selection and
> > sending a "changeSelection" event would contain an array. (Maybe the
> event
> > name, too, should have "Array" appended to it, but that's even uglier.)
> >
>
> Indeed. And, of course, JavaScript does nothing to help you, because it
> does
> no static type checking.
>
No, but then the functions that were being called could do some type
checking. indexOf() could certainly verify that the haystack parameter is an
array and the needle parameter is a non-array. In particular, the TabView's
own indexOf() method could ensure that the needle parameter is a Page object
and not an array.
Derrell
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel