Merge pull request #3 from bitowl/firefoxfixes

remove firefox-bug
This commit is contained in:
overflowerror 2013-07-20 11:57:00 -07:00
commit d700cb4c27
2 changed files with 7 additions and 2 deletions

View file

@ -475,7 +475,7 @@ Emulator.Output.getCursor = function() {
} }
Emulator.Output.cursorOff = function() { // fix by Jonas Emulator.Output.cursorOff = function() { // fix by Jonas
if(document.getElementById("cursor") != undefined) if(document.getElementById("cursor") != undefined)
document.getElementById("cursor").remove(); document.getElementById("cursor").parentNode.removeChild(document.getElementById("cursor"));
} }
Emulator.Output.cursorOn = function() { // fix by Jonas Emulator.Output.cursorOn = function() { // fix by Jonas
if (Emulator.Output.displayCursor) { if (Emulator.Output.displayCursor) {
@ -564,7 +564,11 @@ Emulator.Request = function() {
} }
Emulator.Request.get = function(file, parameter, background, after) { Emulator.Request.get = function(file, parameter, background, after) {
var http = new XMLHttpRequest(); var http = new XMLHttpRequest();
http.open("GET", file + "?" + parameter, background); if(parameter){
http.open("GET", file + "?" + parameter, background);
}else{
http.open("GET", file, background);
}
if (background) { if (background) {
http.onreadystatechange = function() { http.onreadystatechange = function() {
if (http.readyState == 4) { if (http.readyState == 4) {

View file

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html> <html>
<head> <head>
<style> <style>