zhenglei21887 / hotArea

hotArea is a jQuery plugin that gives you the ability to select multiple areas from an image and set link for them.
1 stars 1 forks source link

bindChangeEvent not working because of change on 534 #1

Open MohsinQK opened 6 years ago

MohsinQK commented 6 years ago

and the get method is also missing in your library.

check out my this comment. https://github.com/zhenglei21887/hotArea/commit/be9f6fe93e2bc5115434548b9a940ef390d3d833#comments

I don't know the reason for doing this so that's why I am not sending you to pull request for fixing this issue.

zhenglei21887 commented 6 years ago
  1. 'get' method has been added, thanks for your reminding
  2. methods like 'get' or 'toTag' are regarded as final,which have a return and should not be chainable consecutively, others return $element

bindChangeEvent methods can be used like this ↓ (https://github.com/zhenglei21887/hotArea/blob/HEAD/index.html) $("#canvas") .hotArea({initAreas: initAreas}) .hotArea('bindChangeEvent', function (event, data) { console.log(data.areas); });