cueplayer-react
Advanced tools
Comparing version 0.3.20 to 0.3.21
@@ -0,1 +1,6 @@ | ||
<a name="0.3.21"></a> | ||
## [0.3.21](https://github.com/joelhooks/cueplayer-react/compare/0.0.6...0.3.21) (2021-07-06) | ||
<a name="0.3.20"></a> | ||
@@ -2,0 +7,0 @@ ## [0.3.20](https://github.com/joelhooks/cueplayer-react/compare/0.0.6...0.3.20) (2021-07-06) |
@@ -63,8 +63,18 @@ "use strict"; | ||
(0, _createClass2["default"])(PlaybackRateMenuButton, [{ | ||
key: "componentDidMount", | ||
value: function componentDidMount() { | ||
var _this$props = this.props, | ||
rates = _this$props.rates, | ||
player = _this$props.player, | ||
selected = _this$props.selected; | ||
var selectedIndex = rates.indexOf(selected) > -1 ? rates.indexOf(selected) : rates.indexOf(player.playbackRate) || 0; | ||
this.handleSelectItem(selectedIndex); | ||
} | ||
}, { | ||
key: "handleSelectItem", | ||
value: function handleSelectItem(index) { | ||
var _this$props = this.props, | ||
rates = _this$props.rates, | ||
actions = _this$props.actions, | ||
onChange = _this$props.onChange; | ||
var _this$props2 = this.props, | ||
rates = _this$props2.rates, | ||
actions = _this$props2.actions, | ||
onChange = _this$props2.onChange; | ||
@@ -82,6 +92,6 @@ if (index >= 0 && index < rates.length) { | ||
value: function render() { | ||
var _this$props2 = this.props, | ||
rates = _this$props2.rates, | ||
player = _this$props2.player, | ||
selected = _this$props2.selected; | ||
var _this$props3 = this.props, | ||
rates = _this$props3.rates, | ||
player = _this$props3.player, | ||
selected = _this$props3.selected; | ||
var items = rates.map(function (rate) { | ||
@@ -88,0 +98,0 @@ return { |
{ | ||
"name": "cueplayer-react", | ||
"version": "0.3.20", | ||
"version": "0.3.21", | ||
"description": "cueplayer-react is a web video player built from the ground up for an HTML5 world using React library.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4116736
34696