Skip to content

Commit

Permalink
Only expose globally if no module def is found
Browse files Browse the repository at this point in the history
  • Loading branch information
peol committed May 15, 2013
1 parent ec382ce commit 084c42a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mqa.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
* // `active` indicates whether the media query was activated or not
* });
*/
var mqa = window.mqa = {};
var mqa = {};

/**
* Add an aliased query that can be used programmatically.
Expand Down Expand Up @@ -246,5 +246,7 @@

if(typeof define === "function" && define.amd) {
define(mqa);
} else {
window.mqa = mqa;
}
}(window, document));

0 comments on commit 084c42a

Please sign in to comment.