Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mockdom.js: beautified

  • Loading branch information...
commit 78464c9d93480aae728dfbbda1bc7ab937c03902 1 parent c4a4278
@booo authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 mockdom.js
View
12 mockdom.js
@@ -2,7 +2,7 @@ XMLHttpRequest = function() {
return {
'open': function() { },
'send': function() { }
- }
+ };
};
navigator = {
@@ -11,7 +11,7 @@ navigator = {
'appVersion': '0.1',
'language': 'en',
'userLanguage': 'en'
-}
+};
element = function(type) {
type = type || "";
@@ -60,12 +60,12 @@ element = function(type) {
} else {
var elem = this.childNodes[i].getElementById(id);
if (elem) {
- return elem
+ return elem;
}
}
}
}
- }
+ };
};
document = element();
@@ -75,7 +75,7 @@ document.createElement = function(type) {
document.createTextNode = function(text) {
var e = element("Text");
e.innerHTML = text;
-}
+};
document.appendChild(element("head"));
document.body = element("body");
@@ -87,7 +87,7 @@ window = {
'getSelection': function() {
return {
collapseToStart: function() {}
- }
+ };
},
document: document,
navigator: navigator,
Please sign in to comment.
Something went wrong with that request. Please try again.