Updated define to work with AMD imports

This commit is contained in:
Khalid Aziz 2016-08-04 02:05:12 -05:00
parent 81756a1af9
commit 6e18bc8b31

View File

@ -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);