Merge pull request #326 from mkaziz/master

Updated define to work with AMD imports
This commit is contained in:
Sam Potts 2016-08-06 10:15:53 +10:00 committed by GitHub
commit 56d9730d0a

View File

@ -16,7 +16,7 @@
module.exports = factory(root, document); module.exports = factory(root, document);
} else if (typeof define === 'function' && define.amd) { } else if (typeof define === 'function' && define.amd) {
// AMD // AMD
define(null, function() { factory(root, document) }); define([], function () { return factory(root, document); });
} else { } else {
// Browser globals (root is window) // Browser globals (root is window)
root.plyr = factory(root, document); root.plyr = factory(root, document);