Navigation Menu

Skip to content

Commit

Permalink
Add support for Node.js modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Couto committed Mar 2, 2012
1 parent 668c7be commit 19ff2e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/Blueprint.js
Expand Up @@ -130,10 +130,15 @@
};

/**
* Expose Blueprint to the Global context with support for AMD Modules
* Expose Blueprint to the Global context with support for AMD and Node Modules
*/
if (typeof define === "function" && define.amd) {
define("Blueprint", [], function() { return Blueprint; });
} else { root.Blueprint = Blueprint; }
if (typeof define === "function" && define.amd) {
define("Blueprint", [], function () { return Blueprint; } );
} else if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports) {
module.exports = Blueprint;
} else {
root.Blueprint = Blueprint;
}


}(this));
2 changes: 1 addition & 1 deletion src/Blueprint.min.js

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

0 comments on commit 19ff2e9

Please sign in to comment.