fix ie-javascript

This commit is contained in:
Martijn Voncken 2008-07-12 12:43:29 +00:00
parent ceafbfd990
commit 24c7504159
1 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,20 @@ There's so much crap out there,i can't find good examples.
so i'd rather start from scratch, so i'd rather start from scratch,
Probably broken in an unexpected way , but worksforme. Probably broken in an unexpected way , but worksforme.
*/ */
/*fix IE:*/
if(!Array.indexOf){
Array.prototype.indexOf = function(obj){
for(var i=0; i<this.length; i++){
if(this[i]==obj){
return i;
}
}
return -1;
}
}
/*/fix IE*/
state = { state = {
'row_js_continue':true, 'row_js_continue':true,
'selected_rows': new Array(), 'selected_rows': new Array(),