Bug 485288 - Don't process video controls events after bindings detached. r=dolske a=blocking2.0

This commit is contained in:
Chris Pearce 2010-09-03 12:03:03 +12:00
Родитель 92046af63f
Коммит ea94360698
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -404,8 +404,10 @@
// If the binding is detached (or has been replaced by a
// newer instance of the binding), nuke our event-listeners.
if (this.videocontrols.randomID != this.randomID)
if (this.videocontrols.randomID != this.randomID) {
this.terminateEventListeners();
return;
}
switch (aEvent.type) {
case "play":