multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

Remote lookup does not work in Chrome

Open ejhayes opened this issue 14 years ago • 0 comments

The remote lookup does not work in Chrome (currently viewing using Chromium 5.0.375.125). The following error appears to occur on ui.multiselect.js:50:

Uncaught TypeError: Cannot call method 'split' of undefined

I created a sample remote page that would return a few elements. Then in the debugger I placed a break at line 50:

lines Array 0: a=Apple 1: b=Banana 2: c=Cat constructor: function Array() index: undefined input: undefined length: 3 proto: Array

On each iteration of the loop I see the following:

i=0 i=1 i=2 i=index

However, this loops stops at i=2 in Firefox so there are no issues with this. Changing line 49 from:

for (var i in lines) {

to

for (var i=0; i < lines.length; i++) {

seems to resolve this issue.

ejhayes avatar Aug 02 '10 22:08 ejhayes