bug 330244: replace preventBubble with stopPropagation. pach by ssitter, r=mvl

This commit is contained in:
mvl%exedo.nl 2006-03-18 11:56:48 +00:00
Родитель 9f311bb496
Коммит b3fcaad307
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -361,13 +361,13 @@
<handlers> <handlers>
<handler event="mousedown"><![CDATA[ <handler event="mousedown"><![CDATA[
event.preventBubble(); event.stopPropagation();
if (this.mDate) if (this.mDate)
this.monthView.selectedDay = this.mDate; this.monthView.selectedDay = this.mDate;
]]></handler> ]]></handler>
<handler event="dblclick"><![CDATA[ <handler event="dblclick"><![CDATA[
event.preventBubble(); event.stopPropagation();
this.monthView.controller.createNewEvent(); this.monthView.controller.createNewEvent();
]]></handler> ]]></handler>
</handlers> </handlers>

Просмотреть файл

@ -230,7 +230,7 @@
<handlers> <handlers>
<handler event="mousedown" button="0"><![CDATA[ <handler event="mousedown" button="0"><![CDATA[
event.preventBubble(); event.stopPropagation();
var whichside = this.getAttribute("whichside"); var whichside = this.getAttribute("whichside");
if (!whichside) if (!whichside)
return; return;
@ -238,7 +238,7 @@
// we make assumptions about our position in the tree here; // we make assumptions about our position in the tree here;
// specifically, this should get us to a <calendar-event-box> // specifically, this should get us to a <calendar-event-box>
var evbox = this.parentNode.parentNode; var evbox = this.parentNode.parentNode;
// still select it (since we'll preventBubble()) // still select it (since we'll stopPropagation())
evbox.calendarView.selectedItem = evbox.mOccurrence; evbox.calendarView.selectedItem = evbox.mOccurrence;
// then start dragging it // then start dragging it
evbox.parentColumn.startSweepingToModifyEvent(evbox, evbox.mOccurrence, whichside, event.screenX, event.screenY); evbox.parentColumn.startSweepingToModifyEvent(evbox, evbox.mOccurrence, whichside, event.screenX, event.screenY);
@ -1399,7 +1399,7 @@
<handlers> <handlers>
<handler event="mousedown" button="0"><![CDATA[ <handler event="mousedown" button="0"><![CDATA[
event.preventBubble(); event.stopPropagation();
if (this.mEditing) if (this.mEditing)
return; return;
@ -1443,7 +1443,7 @@
<handler event="mouseover"><![CDATA[ <handler event="mouseover"><![CDATA[
if (this.calendarView && this.calendarView.controller) { if (this.calendarView && this.calendarView.controller) {
event.preventBubble(); event.stopPropagation();
onMouseOverItem(event); onMouseOverItem(event);
} }
]]></handler> ]]></handler>

Просмотреть файл

@ -234,7 +234,7 @@
]]></handler> ]]></handler>
<handler event="mouseover"><![CDATA[ <handler event="mouseover"><![CDATA[
if (this.calendarView && this.calendarView.controller) { if (this.calendarView && this.calendarView.controller) {
event.preventBubble(); event.stopPropagation();
onMouseOverItem(event); onMouseOverItem(event);
} }
]]></handler> ]]></handler>