Skip to content

Commit 994048a

Browse files
joeltineconcavelenz
authored andcommitted
Comment explaining use of "in" operator for PercentLoaded
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=99036955
1 parent 6bad923 commit 994048a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

closure/goog/ui/media/flashobject.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,9 @@ goog.ui.media.FlashObject.prototype.isLoaded = function() {
623623
return true;
624624
}
625625

626+
// Use "in" operator to check for PercentLoaded because IE8 throws when
627+
// accessing directly. See:
628+
// https://github.com/google/closure-library/pull/373.
626629
if ('PercentLoaded' in this.getFlashElement() &&
627630
this.getFlashElement().PercentLoaded() == 100) {
628631
return true;

0 commit comments

Comments
 (0)