The blur function in the popup plugin is called when you press the “X” in infoWindow on the google map, so the popup closes. The following is the code in the jquery.popupoverlay.js file:
if (options.blur) {
blurhandler = function (e) {
if (!$(e.target).parents().andSelf().is('#' + el.id)) {
methods.hide(el);
}
};
}
"X" is the image, and it is parents()returned only in the InfoWindow div, but not in the pop-up div. Therefore, it calls methods.hide(el)and closes the popup.
, , , . img:
if (options.blur) {
blurhandler = function (e) {
if (!$(e.target).parents().andSelf().is('#' + el.id) ) {
if(!($(e.target).attr('src') === 'http://maps.gstatic.com/mapfiles/api-3/images/mapcnt3.png'))
methods.hide(el);
}
};
}