summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2012-06-03 14:58:30 +0200
committerportix <none@none>2012-06-03 14:58:30 +0200
commit64321ca7aac7c02b2b2c1da6c3aca601799270d2 (patch)
tree2a39b37a8882d70711f772990d87b97471454e19 /scripts
parent1fa7f191f0e7a7a026c05aa00cbaddc6befc1904 (diff)
downloaddwb-64321ca7aac7c02b2b2c1da6c3aca601799270d2.zip
Check for hinttype when creating image map hints, fixes #186
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hints.js4
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;
}