rem: event.preventBubble(); 
add: event.stopPropagation(); 
context: function polyFinish(event, construct){  dump("polyfinish called\n");  var len = currentPoly.childNodes.length;  if (len >=3){    var polyLeft = 1000000;    var polyTop = 1000000;    var polyWidth = 0;    var polyHeight = 0;    for(p=0; p<len; p++){      var curEl = currentPoly.childNodes[p];      curEl.setAttribute("class", "point");      curEl.style.cursor = "default";      pointLeft = parseInt(curEl.style.left);      pointTop = parseInt(curEl.style.top);      polyLeft = Math.min(polyLeft, pointLeft);      polyTop = Math.min(polyTop, pointTop);      dump(polyLeft+"\n");    }    for(p=0; p<len; p++){      var curEl = currentPoly.childNodes[p];      curEl.style.left = (parseInt(curEl.style.left)-polyLeft)+"px";      curEl.style.top = (parseInt(curEl.style.top)-polyTop)+"px";    }    for(p=0; p<len; p++){      var curEl = currentPoly.childNodes[p];      polyWidth = Math.max(polyWidth, (parseInt(curEl.style.left)+3));      polyHeight = Math.max(polyHeight, (parseInt(curEl.style.top)+3));    }    if (parseInt(currentPoly.style.left) >= 0){      polyLeft += parseInt(currentPoly.style.left);      polyTop += parseInt(currentPoly.style.top);    }    currentPoly.style.left = polyLeft+"px";    currentPoly.style.top = polyTop+"px";    currentPoly.style.width = polyWidth+"px";    currentPoly.style.height = polyHeight+"px";    //currentPoly.childNodes[0].onclick = null;    //currentPoly.onclick = null;    currentPoly.style.cursor = "auto";    //currentPoly.childNodes[0].removeEventListener("click", polyFinish, false);    //currentPoly.removeEventListener("click", addPoint, true);    if (!construct)      hotSpotProps(currentPoly);  }  else    deleteElement(currentPoly);  if (event)    event.preventBubble();  currentPoly = null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/04cfde2d6fd8dbf1abe2b7ec6ca8d6cbb0386d6d/EdImageMapShapes.js/clean/editor/ui/dialogs/content/EdImageMapShapes.js