Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ceilino committed Jul 1, 2018
2 parents abb5f17 + 48bc121 commit 9b7f4ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jquery.ez-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (typeof Object.create !== 'function') {

self.options = $.extend({}, $.fn.ezPlus.options, self.responsiveConfig(options || {}));

self.imageSrc = self.$elem.data(self.options.attrImageZoomSrc) ? self.$elem.data(self.options.attrImageZoomSrc) : self.$elem.attr('src');
self.imageSrc = self.$elem.attr('data-'+self.options.attrImageZoomSrc) ? self.$elem.attr('data-'+self.options.attrImageZoomSrc) : self.$elem.attr('src');

if (!self.options.enabled) {
return;
Expand Down Expand Up @@ -203,6 +203,9 @@ if (typeof Object.create !== 'function') {
//has a border been put on the image? Lets cater for this
var borderWidth = self.$elem.css('border-left-width');

if (self.options.scrollZoom)
self.zoomLens = $('<div class="zoomLens"/>');

return {
display: 'none',
position: 'absolute',
Expand Down

0 comments on commit 9b7f4ee

Please sign in to comment.