PDA

View Full Version : Problem with yui-utilities.js/YAHOO.lang.isArray function



joleg
13 Jun 2007, 7:49 AM
While trying to use the Yahoo UI library together with ExtJs I stumbled over the following problem:
the YAHOO.lang.isArray() replacement in yui-utilities.js doesn't check for the argument being null leading to an error in that case.
The behavior seems to be different from the original Yahoo UI library isArray() implementation.

In my case it caused the autocompleter from the Yahoo library to not work anymore.
When just returning false in case the argument is null made everything work fine.