Bug #4510 » 0001-Do-not-access-image-map-jsRef-before-available.patch
src/Wt/WImage.C | ||
---|---|---|
WStringStream ss;
|
||
if (!targetJS_.empty()) {
|
||
ss << "(function(){"
|
||
"if (" << jsRef() << ") {"
|
||
"var o = jQuery.data(" << jsRef() << ", 'obj');"
|
||
"if (o) {o.updateAreas();}"
|
||
"}"
|
||
"})();";
|
||
}
|
||
return ss.str();
|
- « Previous
- 1
- 2
- Next »