mirror of
https://github.com/videojs/video.js.git
synced 2025-04-17 12:06:22 +02:00
Export video.js as a named AMD module. closes #1844
This commit is contained in:
parent
b0a589a800
commit
42fbd4c799
@ -14,6 +14,7 @@ CHANGELOG
|
|||||||
* @toniher added a Catalan translation ([view](https://github.com/videojs/video.js/pull/1794))
|
* @toniher added a Catalan translation ([view](https://github.com/videojs/video.js/pull/1794))
|
||||||
* @mmcc added a VERSION key to the videojs object ([view](https://github.com/videojs/video.js/pull/1798))
|
* @mmcc added a VERSION key to the videojs object ([view](https://github.com/videojs/video.js/pull/1798))
|
||||||
* @mmcc fixed an issue with text track hiding introduced in #1681 ([view](https://github.com/videojs/video.js/pull/1804))
|
* @mmcc fixed an issue with text track hiding introduced in #1681 ([view](https://github.com/videojs/video.js/pull/1804))
|
||||||
|
* Export video.js as a named AMD module ([view](https://github.com/videojs/video.js/pull/1844))
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ vjs.players = {};
|
|||||||
* compiler compatible, so string keys are used.
|
* compiler compatible, so string keys are used.
|
||||||
*/
|
*/
|
||||||
if (typeof define === 'function' && define['amd']) {
|
if (typeof define === 'function' && define['amd']) {
|
||||||
define([], function(){ return videojs; });
|
define('videojs', [], function(){ return videojs; });
|
||||||
|
|
||||||
// checking that module is an object too because of umdjs/umd#35
|
// checking that module is an object too because of umdjs/umd#35
|
||||||
} else if (typeof exports === 'object' && typeof module === 'object') {
|
} else if (typeof exports === 'object' && typeof module === 'object') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user