Skip to content

Commit

Permalink
Merge pull request #128 from volkerdobler/fix-remove
Browse files Browse the repository at this point in the history
Fix: only same container with identical ID needs to be removed. Issue…
  • Loading branch information
igorlino authored Jul 7, 2020
2 parents 26e6905 + 25dbd04 commit 8605887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.ez-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ if (typeof Object.create !== 'function') {
if (self.$elem.attr('id')) {
self.zoomContainer.attr('id', self.$elem.attr('id') + '-' + self.options.container);
}
$('.' + self.options.container).remove();
$('.' + self.options.container + '[uuid="' + self.options.zoomId + '"]').remove();
$(self.options.zoomContainerAppendTo).append(self.zoomContainer);

//this will add overflow hidden and contrain the lens on lens mode
Expand Down

0 comments on commit 8605887

Please sign in to comment.