mirror of
https://github.com/videojs/video.js.git
synced 2024-11-24 08:42:25 +02:00
Merge branch 'export-addremove-class' of git://github.com/theonion/video.js into theonion-export-addremove-class
Conflicts: src/js/exports.js test/unit/api.js
This commit is contained in:
commit
26cc24c59d
@ -15,6 +15,7 @@ CHANGELOG
|
||||
* Minor code improvements ([view](https://github.com/videojs/video.js/pull/706))
|
||||
* Updated time formatting to support NaN and Infinity ([view](https://github.com/videojs/video.js/pull/627))
|
||||
* Fixed an `undefined` error in cases where no tech is loaded ([view](https://github.com/videojs/video.js/pull/632))
|
||||
* Exported addClass and removeClass for player components ([view](https://github.com/videojs/video.js/pull/661))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -55,6 +55,8 @@ goog.exportProperty(vjs.Component.prototype, 'width', vjs.Component.prototype.wi
|
||||
goog.exportProperty(vjs.Component.prototype, 'height', vjs.Component.prototype.height);
|
||||
goog.exportProperty(vjs.Component.prototype, 'dimensions', vjs.Component.prototype.dimensions);
|
||||
goog.exportProperty(vjs.Component.prototype, 'ready', vjs.Component.prototype.ready);
|
||||
goog.exportProperty(vjs.Component.prototype, 'addClass', vjs.Component.prototype.addClass);
|
||||
goog.exportProperty(vjs.Component.prototype, 'removeClass', vjs.Component.prototype.removeClass);
|
||||
|
||||
goog.exportSymbol('videojs.Player', vjs.Player);
|
||||
goog.exportProperty(vjs.Player.prototype, 'dispose', vjs.Player.prototype.dispose);
|
||||
|
@ -25,6 +25,8 @@ test('should be able to access expected player API methods', function() {
|
||||
ok(player.one, 'one exists');
|
||||
ok(player.bufferedPercent, 'bufferedPercent exists');
|
||||
ok(player.dimensions, 'dimensions exists');
|
||||
ok(player.addClass, 'addClass exists');
|
||||
ok(player.removeClass, 'removeClass exists');
|
||||
ok(player.usingNativeControls, 'usingNativeControls exists');
|
||||
|
||||
player.dispose();
|
||||
|
Loading…
Reference in New Issue
Block a user