Skip to content

Commit

Permalink
Merge pull request #181 from DanielRuf/patch/window-object
Browse files Browse the repository at this point in the history
explicitely define window.Waves
  • Loading branch information
fians authored Dec 12, 2017
2 parents 6ba6481 + a440f0d commit e96f496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/waves.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// to root via `this`.
if (typeof define === 'function' && define.amd) {
define([], function() {
return factory.apply(window);
return window.Waves = factory.apply(window);
});
}

Expand Down

0 comments on commit e96f496

Please sign in to comment.