diff options
author | portix <none@none> | 2012-06-03 14:58:30 +0200 |
---|---|---|
committer | portix <none@none> | 2012-06-03 14:58:30 +0200 |
commit | 64321ca7aac7c02b2b2c1da6c3aca601799270d2 (patch) | |
tree | 2a39b37a8882d70711f772990d87b97471454e19 /scripts | |
parent | 1fa7f191f0e7a7a026c05aa00cbaddc6befc1904 (diff) | |
download | dwb-64321ca7aac7c02b2b2c1da6c3aca601799270d2.zip |
Check for hinttype when creating image map hints, fixes #186
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hints.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/hints.js b/scripts/hints.js index d8654f12..b22749f5 100644 --- a/scripts/hints.js +++ b/scripts/hints.js @@ -365,7 +365,7 @@ Object.freeze((function () { __createHints(e.contentWindow, varructor, type); continue; } - else if (e instanceof HTMLImageElement) { + else if (e instanceof HTMLImageElement && type != HintTypes.HINT_T_IMAGES) { if (e.hasAttribute("usemap")) __createMap(hints, varructor, e, win, r, oe); } @@ -516,7 +516,7 @@ Object.freeze((function () { } if (type > 0) { switch (type) { - case HintTypes.HINT_T_IMAGES: ret = e.src; break; + case HintTypes.HINT_T_IMAGES: ret = e.src; __clear(); return ret; case HintTypes.HINT_T_URL : ret = e.hasAttribute("href") ? e.href : e.src; __clear(); return ret; default: break; } |