Skip to content

Commit

Permalink
revert browser exported object
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed May 27, 2013
1 parent 678b988 commit 56032cc
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion browser-document.js

This file was deleted.

1 change: 0 additions & 1 deletion browser-process.js

This file was deleted.

1 change: 0 additions & 1 deletion browser-window.js

This file was deleted.

1 change: 0 additions & 1 deletion browser.js

This file was deleted.

6 changes: 5 additions & 1 deletion document.js
@@ -1 +1,5 @@
module.exports = require("min-document")
if (typeof document !== "undefined") {
module.exports = document
} else {
module.exports = require("min-document")
}
1 change: 0 additions & 1 deletion index.js

This file was deleted.

8 changes: 1 addition & 7 deletions package.json
Expand Up @@ -5,13 +5,7 @@
"keywords": [],
"author": "Raynos <raynos2@gmail.com>",
"repository": "git://github.com/Colingo/global.git",
"main": "index",
"browser": {
"./index.js": "./browser.js",
"./process.js": "./browser-process.js",
"./document.js": "./browser-document.js",
"./window.js": "./browser-window.js"
},
"main": "window.js",
"homepage": "https://github.com/Colingo/global",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion process.js
@@ -1 +1 @@
module.exports = process
module.exports = require("process")
8 changes: 7 additions & 1 deletion window.js
@@ -1 +1,7 @@
module.exports = global
if (typeof window !== "undefined") {
module.exports = window
} else if (typeof global !== "undefined") {
module.exports = global
} else {
module.exports = {}
}

0 comments on commit 56032cc

Please sign in to comment.