Im trying to fix some old mootools script, in Internet Explorer 9, Firefox Array.append works just fine
ar ewls = document.getElements('a');
var lol = [];
lol.append(ewls);
But in IE8 im geting this error in the console
“SCRIPT5028: Function.prototype.apply: oczekiwano obiektu tablicy lub argumentów” (expected array or arguments)
er.
Array.append?lol = []; lol.push(ewls);you ought to consider a collection. you have a data type mismatch. merging a collection with a static array won’t work.
var lol = new Elements();– it’s like an array only with element protos as well. thenlol.append(ewels);http://jsfiddle.net/dKkX5/5/
keep in mind the append is from 1.3+ – in 1.2 it was
Array.extend