Skip to content

Commit

Permalink
indentation and other minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dallen42 committed Jun 21, 2018
1 parent cccc659 commit 2bad9a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/ooyala_ssai.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ OO.Ads.manager(function(_, $)
if (ad && ad.ad && ad.ad.data && this.adIdDictionary[ad.ad.data.id]) {
clearTimeout(this.adIdDictionary[ad.ad.data.id].adTimer);
}
}
}
};

/**
Expand All @@ -349,7 +349,7 @@ OO.Ads.manager(function(_, $)
{
if (adMode) {
_handleTrackingUrls(this.currentAd, ["resume"]);
if (ad && ad.ad && ad.ad.data && this.adIdDictionary[ad.ad.data.id] && _.isNumber(ad.duration)) {
if (ad && ad.ad && ad.ad.data && this.adIdDictionary[ad.ad.data.id] && _.isFinite(ad.duration)) {
//Setting the ad callback again since ad was resumed
this.adIdDictionary[ad.ad.data.id].adTimer = _.delay(
_adEndedCallback(null, ad.ad.data.id),
Expand Down Expand Up @@ -748,7 +748,7 @@ OO.Ads.manager(function(_, $)
{
_handleTrackingUrls(this.currentAd, url);
}
}
}
};

/**
Expand Down

0 comments on commit 2bad9a3

Please sign in to comment.