Skip to content

Commit

Permalink
fix for uncaught undefined e in setPosition in Chrome
Browse files Browse the repository at this point in the history
fix for uncaught undefined e in setPosition in Chrome. (thanks matthewstyler)
  • Loading branch information
igorlino authored Dec 13, 2017
1 parent 1f38f85 commit d4a8a39
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 @@ -641,7 +641,7 @@ if (typeof Object.create !== 'function') {

var self = this;

if (!self.options.zoomEnabled) {
if (!self.options.zoomEnabled || e === undefined) {
return false;
}

Expand Down

0 comments on commit d4a8a39

Please sign in to comment.