mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1010445 - Fix instanceof checks in CastingApps. r=mfinkle
This commit is contained in:
parent
0a3b017bee
commit
5ecdf5fadb
@ -107,7 +107,7 @@ var CastingApps = {
|
||||
// Let's figure out if we have everything needed to cast a video. The binding
|
||||
// defaults to |false| so we only need to send an event if |true|.
|
||||
let video = aEvent.target;
|
||||
if (!video instanceof HTMLVideoElement) {
|
||||
if (!(video instanceof HTMLVideoElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ var CastingApps = {
|
||||
handleVideoBindingCast: function handleVideoBindingCast(aTab, aEvent) {
|
||||
// The binding wants to start a casting session
|
||||
let video = aEvent.target;
|
||||
if (!video instanceof HTMLVideoElement) {
|
||||
if (!(video instanceof HTMLVideoElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -172,7 +172,7 @@ var CastingApps = {
|
||||
},
|
||||
|
||||
_getVideo: function(aElement) {
|
||||
if (!aElement instanceof HTMLVideoElement) {
|
||||
if (!(aElement instanceof HTMLVideoElement)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user