Skip to content

Commit

Permalink
Stop leaking global
Browse files Browse the repository at this point in the history
Use the [commonjsStrict](https://github.com/umdjs/umd/blob/master/commonjsStrict.js) pattern instead of [commonjsStrictGlobal](https://github.com/umdjs/umd/blob/master/commonjsStrictGlobal.js), so we don't introduce a new global.
  • Loading branch information
mroderick committed Aug 9, 2014
1 parent 0cd0104 commit 4e5a118
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pubsub.js
Expand Up @@ -18,9 +18,7 @@ https://github.com/mroderick/PubSubJS

if (typeof define === 'function' && define.amd){
// AMD. Register as an anonymous module.
define(['exports'], function (exports, b){
factory((root.PubSub = exports), b);
});
define(['exports'], factory);

} else if (typeof exports === 'object'){
// CommonJS
Expand Down

0 comments on commit 4e5a118

Please sign in to comment.