Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
#26 Fixed webpack + ES6 modules
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesodland committed Nov 9, 2015
1 parent d9a2f96 commit 136171c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/angular-locker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(function () {
return factory(root.angular);
return factory(root.angular || (window && window.angular));
});
} else if (typeof exports === 'object') {
module.exports = factory(root.angular || (window && window.angular));
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-locker.min.js

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

4 changes: 2 additions & 2 deletions dist/angular-locker.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/angular-locker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(function () {
return factory(root.angular);
return factory(root.angular || (window && window.angular));
});
} else if (typeof exports === 'object') {
module.exports = factory(root.angular || (window && window.angular));
Expand Down

0 comments on commit 136171c

Please sign in to comment.