Bug 1010445 - Fix instanceof checks in CastingApps. r=mfinkle

This commit is contained in:
Nick Alexander 2014-05-14 15:03:04 -07:00
parent 0a3b017bee
commit 5ecdf5fadb

View File

@ -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;
}