Permalink
Browse files

switch up export conditional to be more explicit

  • Loading branch information...
1 parent f7b1787 commit 53c62833c392a9905302846f2a9169e44ee8c5b0 @fat committed Oct 4, 2011
Showing with 7 additions and 7 deletions.
  1. +2 −2 bean.js
  2. +1 −1 bean.min.js
  3. +1 −1 package.json
  4. +2 −2 src/bean.js
  5. +1 −1 support/sink
View
@@ -8,8 +8,8 @@
* the entire mootools team: github.com/mootools/mootools-core
*/
!function (name, definition) {
- if (typeof define == 'function') define(definition);
- else if (typeof module != 'undefined') module.exports = definition();
+ if (typeof module != 'undefined') module.exports = definition();
+ else if (typeof define == 'function' && typeof define.amd == 'object') define(definition);
else this[name] = definition();
}('bean', function () {
var win = window,
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "bean",
"description": "an events api for javascript",
- "version": "0.2.8",
+ "version": "0.2.9",
"homepage": "https://github.com/fat/bean",
"authors": ["Jacob Thornton <@fat>"],
"repository": {
View
@@ -1,6 +1,6 @@
!function (name, definition) {
- if (typeof define == 'function') define(definition);
- else if (typeof module != 'undefined') module.exports = definition();
+ if (typeof module != 'undefined') module.exports = definition();
+ else if (typeof define == 'function' && typeof define.amd == 'object') define(definition);
else this[name] = definition();
}('bean', function () {
var win = window,
Submodule sink updated 4 files
+0 −3 .gitmodules
+42 −36 README.md
+0 −1 build/colors
+4 −1 package.json

0 comments on commit 53c6283

Please sign in to comment.