Skip to content

Commit 1c06c19

Browse files
author
张鑫旭
committed
add some details for packages
1 parent 065d75e commit 1c06c19

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mobilebone",
3-
"version": "2.7.4",
4-
"description": "Bone main for mobile web APP with a sigle page mode.",
3+
"version": "2.7.8",
4+
"description": "Bone main for mobile web APP with a sigle page mode by using HTML5 history API router.",
55
"main": "src/mobilebone.js",
66
"directories": {
77
"test": "test"
@@ -16,13 +16,11 @@
1616
"keywords": [
1717
"Mobilebone",
1818
"mobilebone.js",
19-
"javascript"
19+
"javascript",
20+
"router"
2021
],
2122
"author": "zhangxinxu",
22-
"license": [{
23-
"type": "MIT",
24-
"url": "https://github.com/zhangxinxu/mobilebone/blob/master/LICENSE-MIT"
25-
}],
23+
"license": "MIT",
2624
"bugs": {
2725
"url": "https://github.com/zhangxinxu/mobilebone/issues",
2826
"email" : "[email protected]"

src/mobilebone.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
define("mobilebone", function(exports) {
1313
return factory(root, exports);
1414
});
15-
// Finally, as a browser global.
15+
} else if ( typeof module === "object" && typeof module.exports === "object" ) {
16+
module.exports = factory(root, {});
1617
} else {
18+
// Finally, as a browser global.
1719
root.Mobilebone = factory(root, {});
1820
}
19-
})(this, function(root, Mobilebone) {
21+
})((typeof global !== "undefined") ? global
22+
: ((typeof window !== "undefined") ? window
23+
: ((typeof self !== "undefined") ? self : this)), function(root, Mobilebone) {
2024
if (document.MBLOADED) {
2125
return "Don\'t repeat load Mobilebone!";
2226
}

0 commit comments

Comments
 (0)