Project

General

Profile

Bug #4510 » 0001-Do-not-access-image-map-jsRef-before-available.patch

Bruce Toll, 10/14/2015 09:49 PM

View differences:

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();
(2-2/2)