fixing eventsource.js for IE8
This commit is contained in:
parent
8877087b57
commit
8065c73339
|
@ -87,8 +87,10 @@ OC.EventSource.prototype={
|
||||||
useFallBack:false,
|
useFallBack:false,
|
||||||
fallBackCallBack:function(type,data){
|
fallBackCallBack:function(type,data){
|
||||||
if(type){
|
if(type){
|
||||||
for(var i=0;i<this.listeners[type].length;i++){
|
if (typeof this.listeners['done'] != 'undefined') {
|
||||||
this.listeners[type][i](data);
|
for(var i=0;i<this.listeners[type].length;i++){
|
||||||
|
this.listeners[type][i](data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
for(var i=0;i<this.typelessListeners.length;i++){
|
for(var i=0;i<this.typelessListeners.length;i++){
|
||||||
|
@ -117,6 +119,8 @@ OC.EventSource.prototype={
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close:function(){
|
close:function(){
|
||||||
this.source.close();
|
if (typeof this.source !='undefined') {
|
||||||
|
this.source.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue