Skip to content

Commit

Permalink
fixed incorrect use of module which prevents all components from work…
Browse files Browse the repository at this point in the history
…ing in browser
  • Loading branch information
CatChen committed Sep 8, 2011
1 parent aaa14a7 commit 6617807
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jshelpers",
"description": "Helpers for JavaScript",
"homepage": "http://catchen.github.com/jsHelpers/",
"version": "1.0.3",
"version": "1.0.5",
"author": {
"name": "Cat Chen",
"email": "catchen@catchen.me",
Expand Down
2 changes: 1 addition & 1 deletion src/async.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {
var Async = {};
if (module && module.exports) {
if (typeof module != 'undefined' && module.exports) {
module.exports = Async;
} else if (window) {
window.Async = Async;
Expand Down
2 changes: 1 addition & 1 deletion src/central.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {
var Central = {};
if (module && module.exports) {
if (typeof module != 'undefined' && module.exports) {
module.exports = Central;
} else if (window) {
window.Central = Central;
Expand Down
2 changes: 1 addition & 1 deletion src/grandcentral.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {
var GrandCentral = {};
if (module && module.exports) {
if (typeof module != 'undefined' && module.exports) {
module.exports = GrandCentral;
} else if (window) {
window.GrandCentral = GrandCentral;
Expand Down
2 changes: 1 addition & 1 deletion src/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@
}
};

if (module && module.exports) {
if (typeof module != 'undefined' && module.exports) {
module.exports = List;
} else if (window) {
window.List = List;
Expand Down
2 changes: 1 addition & 1 deletion src/overload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {
var Overload = {};
if (module && module.exports) {
if (typeof module != 'undefined' && module.exports) {
module.exports = Overload;
} else if (window) {
window.Overload = Overload;
Expand Down

0 comments on commit 6617807

Please sign in to comment.