diff options
author | Sam Potts <sam@selz.com> | 2016-08-06 10:15:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-06 10:15:53 +1000 |
commit | 56d9730d0abeaadfd69eff524215fc783a940b9d (patch) | |
tree | ace94efbc265912a371a4e76549cfe480cc15e10 /src | |
parent | 81756a1af9454711ec8cfbab1c14fc7016f196fb (diff) | |
parent | 6e18bc8b31d33f4dbe5413a5a6ac712a7c64bb74 (diff) | |
download | plyr-56d9730d0abeaadfd69eff524215fc783a940b9d.tar.lz plyr-56d9730d0abeaadfd69eff524215fc783a940b9d.tar.xz plyr-56d9730d0abeaadfd69eff524215fc783a940b9d.zip |
Merge pull request #326 from mkaziz/master
Updated define to work with AMD imports
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plyr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index c176f59b..71f98af5 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -16,7 +16,7 @@ module.exports = factory(root, document); } else if (typeof define === 'function' && define.amd) { // AMD - define(null, function() { factory(root, document) }); + define([], function () { return factory(root, document); }); } else { // Browser globals (root is window) root.plyr = factory(root, document); |