Skip to content

Commit

Permalink
Merge pull request nolimits4web#3094 from axten/patch-1
Browse files Browse the repository at this point in the history
Don't override Dom7 methods if already declared
  • Loading branch information
nolimits4web authored Jun 14, 2019
2 parents a43c3e1 + 3493f8e commit cac3ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const Methods = {
};

Object.keys(Methods).forEach((methodName) => {
$.fn[methodName] = Methods[methodName];
$.fn[methodName] = $.fn[methodName] || Methods[methodName];
});

export default $;

0 comments on commit cac3ad1

Please sign in to comment.