Uncaught TypeError: Cannot call method 'indexOf' of undefine

Hi Everyone, I am seeing an error in the console from a grid.clearAndLoad(url) that says:

Uncaught TypeError: Cannot call method ‘indexOf’ of undefined dhtmlx.js:33

The stack trace shows:

eXcell_combo.fillColumnCombos dhtmlx.js:1326
(anonymous function) dhtmlx.js:1317
d dhtmlx.js:41
a.callEvent dhtmlx.js:41
xmlLoader.onloadAction dhtmlx.js:835

My javascript code follows:

var url = “/arc?sm=1&o=jb”
mygrid.clearAndLoad(url, function() {
console.log("finished initial clearAndLoad url = " + url);

The xml being returned by the server is:

<?xml version="1.0" encoding="iso-8859-1"?> server.20140116.csv 4750020 2014-01-16 23:01 server.20140117.csv 8046732 2014-01-17 23:01

The xml uses a carriage return (ascii 13) for line endings.

Any help would be much appreciated. If I can provide further information, please let me know.



Unfortunately the issue cannot be reproduced locally.
If issue still occurs for you - please, provide with a complete demo, or a demo link, where the issue can be reconstructed.