Skip to content

Commit

Permalink
feat: add esm support for jquery dist - resolves #415
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg committed Apr 6, 2024
1 parent 5f53d25 commit 6eeaf26
Show file tree
Hide file tree
Showing 14 changed files with 4,677 additions and 38 deletions.
30 changes: 15 additions & 15 deletions dist/jquery.imagemapster.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* imagemapster - v1.6.0 - 2024-03-12
* imagemapster - v1.6.0 - 2024-04-05
* https://github.com/jamietre/ImageMapster/
* Copyright (c) 2011 - 2024 James Treworgy
* License: MIT
Expand Down Expand Up @@ -31,7 +31,7 @@
factory(jQuery);
}
}(function (jQuery) {
/*
/*
jqueryextensions.js
Extend/intercept jquery behavior
*/
Expand Down Expand Up @@ -699,8 +699,8 @@
return d && d.g_vml_
? false
: $('<canvas />')[0].getContext
? true
: false;
? true
: false;
}

/**
Expand Down Expand Up @@ -2606,8 +2606,8 @@
return !ar
? ''
: ar.isPrimary
? ar.key
: this.getPrimaryKeysForMapAreas(ar.areas()).join(',');
? ar.key
: this.getPrimaryKeysForMapAreas(ar.areas()).join(',');
},

/**
Expand Down Expand Up @@ -2948,8 +2948,8 @@
sel = m.hasVml()
? 'area'
: default_group
? 'area[coords]'
: 'area[' + opts.mapKey + ']';
? 'area[coords]'
: 'area[' + opts.mapKey + ']';

areas = $(me.map).find(sel).off('.mapster');

Expand Down Expand Up @@ -3354,22 +3354,22 @@
return u.isBool(this.selected)
? this.selected
: u.isBool(this.owner.area_options.selected)
? this.owner.area_options.selected
: false;
? this.owner.area_options.selected
: false;
},
isSelectable: function () {
return u.isBool(this.effectiveOptions().staticState)
? false
: u.isBool(this.owner.options.staticState)
? false
: u.boolOrDefault(this.effectiveOptions().isSelectable, true);
? false
: u.boolOrDefault(this.effectiveOptions().isSelectable, true);
},
isDeselectable: function () {
return u.isBool(this.effectiveOptions().staticState)
? false
: u.isBool(this.owner.options.staticState)
? false
: u.boolOrDefault(this.effectiveOptions().isDeselectable, true);
? false
: u.boolOrDefault(this.effectiveOptions().isDeselectable, true);
},
isNotRendered: function () {
return isNoHref(this.area) || this.effectiveOptions().isMask;
Expand Down Expand Up @@ -4603,4 +4603,4 @@
};
})(jQuery);

}));
}));
2 changes: 1 addition & 1 deletion dist/jquery.imagemapster.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jquery.imagemapster.min.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/jquery.imagemapster.min.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/jquery.imagemapster.min.mjs.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6eeaf26

Please sign in to comment.