fix ie-javascript
This commit is contained in:
parent
ceafbfd990
commit
24c7504159
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue