Skip to content

Commit

Permalink
JS-396: Stabilize product-video widget initialization when configurab…
Browse files Browse the repository at this point in the history
…le upates
  • Loading branch information
anastasiiabuniak committed Jan 15, 2016
1 parent c4598f4 commit cb1280f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ define([

!$image.type && this._setItemType($image, number - 1);

if ($image.$navThumbFrame && $image.type === 'image') {
$image.$navThumbFrame.removeClass(this.TI);
if ($image.type === 'image') {
$image.$navThumbFrame && $image.$navThumbFrame.removeClass(this.TI);
return;
} else if ($image.$navThumbFrame && $image.type === 'video') {
!$image.$navThumbFrame.hasClass(this.TI) && $image.$navThumbFrame.addClass(this.TI);
Expand Down

0 comments on commit cb1280f

Please sign in to comment.