Deleted some stuff that does not work correctly in old browser (IE 8)

Better check for FF
Cleand up inside the code
This commit is contained in:
Graziano Felline
2012-04-14 19:42:53 +02:00
parent 185b1be30f
commit 2755c6449c
4 changed files with 5 additions and 15 deletions

View File

@@ -49,10 +49,8 @@ if(typeof beef === 'undefined' && typeof window.beef === 'undefined') {
*/
execute: function(fn) {
if ( typeof beef.websocket == "undefined"){
console.log("--- NO WEBSOCKETS ---");
this.commands.push(fn);
this.commands.push(fn);
}else{
console.log("--- WEBSOCKETS ENABLED ---");
fn();
}
},