Skip to content

Commit

Permalink
Added module.exports for component
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 4, 2012
1 parent e69e5f1 commit 2aab734
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions build/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

;(function(exports){
;(function(){

/**
* Middleware array.
Expand Down Expand Up @@ -319,6 +319,10 @@
* Expose `page`.
*/

exports.page = page;
if ('undefined' == typeof module) {
window.page = page;
} else {
module.exports = page;
}

})(window);
})();
2 changes: 1 addition & 1 deletion build/page.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions lib/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

;(function(exports){
;(function(){

/**
* Middleware array.
Expand Down Expand Up @@ -319,6 +319,10 @@
* Expose `page`.
*/

exports.page = page;
if ('undefined' == typeof module) {
window.page = page;
} else {
module.exports = page;
}

})(window);
})();

0 comments on commit 2aab734

Please sign in to comment.