Skip to content

Conversation

@lvl99
Copy link

@lvl99 lvl99 commented Apr 8, 2013

I found through some dodgy JS code of my own that multiple calls of scPlayer() on a source element weren't being aborted if the scPlayer() functionality was already applied. This resulted in the internal links of the generated scPlayer() element (such as #play, #pause, #info, etc.) to then try to be referenced as scApiUrl()s which then resulted in errors and no media being loaded.

I think ideally all the var setting logic which involves DOM-crawling would follow the abort code so as to lower any further unnecessary overheads.

…s already had an scPlayer assigned

I found through some dodgy code of my own that multiple calls of scPlayer() to a source element weren't being aborted if the scPlayer() functionality was already applied.

I think ideally all the DOM-crawling var setting logic would follow the abort code so as to lower any unnecessary overhead.

Signed-off-by: Matt Scheurich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant