Skip to content

Commit

Permalink
Release v1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg committed Feb 15, 2021
1 parent 58555c0 commit a34ff0b
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 46 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,9 @@
- Make callback data structures consistent
- Improve docs

## Version 1.5.3 - 2021.02.14
- [Issue 374](https://github.com/jamietre/ImageMapster/issues/374) Uncaught RangeError: Maximum call stack size exceeded when includeKeys has circular reference

## Version 1.5.2 - 2021.02.14
- [Issue 137](https://github.com/jamietre/ImageMapster/issues/137) area href empty or not specified
- [Issue 170](https://github.com/jamietre/ImageMapster/issues/170) Tooltips/Highlight/Select incorrect when AREA `shape` attribute is missing or its value is non-conforming/empty
Expand Down
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -158,7 +158,7 @@ ImageMapster includes several examples. To view the examples:

## Zepto Compatibility

As of ImageMapster v1.3.2, ImageMapster contains full support for Zepto v1.2.0. The latest Zepto compatible version of ImageMapster is [1.5.2](https://github.com/jamietre/ImageMapster/releases/tag/v1.5.2).
As of ImageMapster v1.3.2, ImageMapster contains full support for Zepto v1.2.0. The latest Zepto compatible version of ImageMapster is [1.5.3](https://github.com/jamietre/ImageMapster/releases/tag/v1.5.3).

Prior to ImageMapster v1.3.2 and with any version of Zepto except v1.2.0, ImageMapster is unlikely to work as expected. In the early versions of ImageMapster, Zepto support was maintained, however due to changes in Zepto, as of v1.2.5 of ImageMapster, support for Zepto compatability was not maintained as it required too much effort and pushing ImageMapster forward with jQuery was the priority.

Expand All @@ -177,8 +177,8 @@ To use ImageMapster >= v1.3.2 < 2.0.0 with Zepto v.1.2.0, Zepto must contain the

:warning: **_As of ImageMapster v1.3.0, if targeting ES5 browers, you must include a Promise polyfill such as [es6-promise](https://www.npmjs.com/package/es6-promise). See [Issue 341](https://github.com/jamietre/ImageMapster/issues/341) for details._**

1. [jsDelivr](https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.2) - https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.2
2. [cdnjs](https://cdnjs.com/libraries/imagemapster/1.5.2) - https://cdnjs.com/libraries/imagemapster/1.5.2
1. [jsDelivr](https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.3) - https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.3
2. [cdnjs](https://cdnjs.com/libraries/imagemapster/1.5.3) - https://cdnjs.com/libraries/imagemapster/1.5.3

Use `jquery.imagemapster.zepto.min.js`

Expand All @@ -194,7 +194,7 @@ Use `jquery.imagemapster.zepto.min.js`
></script>
<script
language="text/javascript"
src="/path/to/cdn/for/v1.5.2/dist/jquery.imagemapster.zepto.min.js"
src="/path/to/cdn/for/v1.5.3/dist/jquery.imagemapster.zepto.min.js"
></script>
```

Expand All @@ -207,7 +207,7 @@ Using `webpack` and `zepto-modules` as an example:
#### Install from NPM

```sh
npm install zepto-modules imagemapster@1.5.2 --save
npm install zepto-modules imagemapster@1.5.3 --save
```

#### src/yourzepto.js
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "ImageMapster",
"version": "1.5.2",
"version": "1.5.3",
"homepage": "https://github.com/jamietre/ImageMapster",
"description": "jQuery plugin that activates areas in HTML imagemaps with support for highlighting, selecting, tooltips, resizing and more",
"main": "dist/jquery.imagemapster.min.js",
Expand Down
32 changes: 16 additions & 16 deletions dist/jquery.imagemapster.js
@@ -1,5 +1,5 @@
/*!
* imagemapster - v1.5.2 - 2021-02-14
* imagemapster - v1.5.3 - 2021-02-14
* https://github.com/jamietre/ImageMapster/
* Copyright (c) 2011 - 2021 James Treworgy
* License: MIT
Expand Down Expand Up @@ -107,7 +107,7 @@
(function ($) {
'use strict';

var mapster_version = '1.5.2';
var mapster_version = '1.5.3';

// all public functions in $.mapster.impl are methods
$.fn.mapster = function (method) {
Expand Down Expand Up @@ -2062,7 +2062,7 @@
};
})(jQuery);

/*
/*
mapdata.js
The MapData object, repesents an instance of a single bound imagemap
*/
Expand Down Expand Up @@ -2336,7 +2336,8 @@
that = this,
ar = me.getDataForArea(this),
opts = me.options,
navDetails;
navDetails,
areaOpts;

function navigateTo(mode, href, target) {
switch (mode) {
Expand Down Expand Up @@ -2370,7 +2371,7 @@
}

function clickArea(ar) {
var areaOpts, target;
var target;
canChangeState =
ar.isSelectable() && (ar.isDeselectable() || !ar.isSelected());

Expand Down Expand Up @@ -2413,17 +2414,6 @@
if (opts.boundList && opts.boundList.length > 0) {
m.setBoundListProperties(opts, list_target, ar.isSelected());
}

areaOpts = ar.effectiveOptions();
if (areaOpts.includeKeys) {
list = u.split(areaOpts.includeKeys);
$.each(list, function (_, e) {
var ar = me.getDataForKey(e.toString());
if (!ar.options.isMask) {
clickArea(ar);
}
});
}
}

mousedown.call(this, e);
Expand All @@ -2437,6 +2427,16 @@
if (ar && !ar.owner.currentAction) {
opts = me.options;
clickArea(ar);
areaOpts = ar.effectiveOptions();
if (areaOpts.includeKeys) {
list = u.split(areaOpts.includeKeys);
$.each(list, function (_, e) {
var ar = me.getDataForKey(e.toString());
if (!ar.options.isMask) {
clickArea(ar);
}
});
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.imagemapster.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions dist/jquery.imagemapster.zepto.js
@@ -1,5 +1,5 @@
/*!
* imagemapster - v1.5.2 - 2021-02-14
* imagemapster - v1.5.3 - 2021-02-14
* https://github.com/jamietre/ImageMapster/
* Copyright (c) 2011 - 2021 James Treworgy
* License: MIT
Expand Down Expand Up @@ -133,7 +133,7 @@
(function ($) {
'use strict';

var mapster_version = '1.5.2';
var mapster_version = '1.5.3';

// all public functions in $.mapster.impl are methods
$.fn.mapster = function (method) {
Expand Down Expand Up @@ -2088,7 +2088,7 @@
};
})(jQuery);

/*
/*
mapdata.js
The MapData object, repesents an instance of a single bound imagemap
*/
Expand Down Expand Up @@ -2362,7 +2362,8 @@
that = this,
ar = me.getDataForArea(this),
opts = me.options,
navDetails;
navDetails,
areaOpts;

function navigateTo(mode, href, target) {
switch (mode) {
Expand Down Expand Up @@ -2396,7 +2397,7 @@
}

function clickArea(ar) {
var areaOpts, target;
var target;
canChangeState =
ar.isSelectable() && (ar.isDeselectable() || !ar.isSelected());

Expand Down Expand Up @@ -2439,17 +2440,6 @@
if (opts.boundList && opts.boundList.length > 0) {
m.setBoundListProperties(opts, list_target, ar.isSelected());
}

areaOpts = ar.effectiveOptions();
if (areaOpts.includeKeys) {
list = u.split(areaOpts.includeKeys);
$.each(list, function (_, e) {
var ar = me.getDataForKey(e.toString());
if (!ar.options.isMask) {
clickArea(ar);
}
});
}
}

mousedown.call(this, e);
Expand All @@ -2463,6 +2453,16 @@
if (ar && !ar.owner.currentAction) {
opts = me.options;
clickArea(ar);
areaOpts = ar.effectiveOptions();
if (areaOpts.includeKeys) {
list = u.split(areaOpts.includeKeys);
$.each(list, function (_, e) {
var ar = me.getDataForKey(e.toString());
if (!ar.options.isMask) {
clickArea(ar);
}
});
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.imagemapster.zepto.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "imagemapster",
"version": "1.5.2",
"version": "1.5.3",
"description": "jQuery plugin that activates areas in HTML imagemaps with support for highlighting, selecting, tooltips, resizing and more",
"main": "dist/jquery.imagemapster.min.js",
"files": [
Expand Down

0 comments on commit a34ff0b

Please sign in to comment.