Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protect onLoad event from getting invalid event data with try catch #19

Closed
wants to merge 1 commit into from
Closed

Conversation

lizozom
Copy link
Contributor

@lizozom lizozom commented Jun 13, 2016

No description provided.

@lizozom lizozom closed this Jun 13, 2016
iq-dot pushed a commit to iq-dot/VPAIDHTML5Client that referenced this pull request Jul 28, 2017
* copied across imports and render function into new file Player.jsx from App.jsx. May not all be needed, but will trim as I go

* moved videoJSInit into player.js and moved event listeners to props

* moved all state from player.jsx to app.jsx

* reverting changes to bring videojsinit into player.jsx. I think this was the wrong approach, but can still go back and grab it if needs be

* moved most of componentDidMount into Player.jsx, along with static function getVideos

* passing necessary stuff for Player via props

* App.js accessing this.videoNode through this.playerNode

* moved handleScroll event listeners into Player.jsx, and passed function via props

* some further adjustments to the handleScroll event to get it working properly across App.jsx and Player.jsx

* moved handleScroll and related stuff to Player.jsx, passing necessary state via props

* binding functions passed as props in constructor | passing player as parameter back to functions in App.jsx

* removing unneccessary imports from Player.jsx

* changed Player to React.PureComponent | moved getVideos back to App.jsx and passing result as props

* Passing videoJsOptions to Player through props. The options are stored on the App state

* moved logic to dispose player from componentWillUnmount in App.jsx to Player.jsx

* have handleScroll working, but not sure I'm following best practice here

* readded console.log of CLIENT, seeing as I have componentDidMount in App.jsx now

* moved plugins across to Player and passed in stuff via props

* believe I've done everything to get plugins() working correctly

* moved overlay and videoJsInit functions from App.js to Player.js

* updated overlay and videoJsInit to use props and state correctly

* further adjustments to get functions working

* minor changes. Made Modernizr a prop, and made url a const in render to be passed to App.getVideos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants