zencoder/video-js — pull request #102 by rkyrychuk (2011-12-15 21:26:48+00:00)
Title: Ensure that tracking progress and time progress will stop after destroy

When player is played in dialog (say ui dialog) and dialog is closed it still send events and console show multiple errors.
Calling destroy in dialog close code and proposed fix will ensure that player events will be stopped.

This happen with flash fallback only, but code is still useful because it delete element from players collection.