зеркало из https://github.com/mozilla/pjs.git
bug 330244: replace preventBubble with stopPropagation. pach by ssitter, r=mvl
This commit is contained in:
Родитель
79d8af6102
Коммит
b1bf7e6c8e
|
@ -361,13 +361,13 @@
|
|||
|
||||
<handlers>
|
||||
<handler event="mousedown"><![CDATA[
|
||||
event.preventBubble();
|
||||
event.stopPropagation();
|
||||
|
||||
if (this.mDate)
|
||||
this.monthView.selectedDay = this.mDate;
|
||||
]]></handler>
|
||||
<handler event="dblclick"><![CDATA[
|
||||
event.preventBubble();
|
||||
event.stopPropagation();
|
||||
this.monthView.controller.createNewEvent();
|
||||
]]></handler>
|
||||
</handlers>
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
|
||||
<handlers>
|
||||
<handler event="mousedown" button="0"><![CDATA[
|
||||
event.preventBubble();
|
||||
event.stopPropagation();
|
||||
var whichside = this.getAttribute("whichside");
|
||||
if (!whichside)
|
||||
return;
|
||||
|
@ -238,7 +238,7 @@
|
|||
// we make assumptions about our position in the tree here;
|
||||
// specifically, this should get us to a <calendar-event-box>
|
||||
var evbox = this.parentNode.parentNode;
|
||||
// still select it (since we'll preventBubble())
|
||||
// still select it (since we'll stopPropagation())
|
||||
evbox.calendarView.selectedItem = evbox.mOccurrence;
|
||||
// then start dragging it
|
||||
evbox.parentColumn.startSweepingToModifyEvent(evbox, evbox.mOccurrence, whichside, event.screenX, event.screenY);
|
||||
|
@ -1399,7 +1399,7 @@
|
|||
|
||||
<handlers>
|
||||
<handler event="mousedown" button="0"><![CDATA[
|
||||
event.preventBubble();
|
||||
event.stopPropagation();
|
||||
|
||||
if (this.mEditing)
|
||||
return;
|
||||
|
@ -1443,7 +1443,7 @@
|
|||
|
||||
<handler event="mouseover"><![CDATA[
|
||||
if (this.calendarView && this.calendarView.controller) {
|
||||
event.preventBubble();
|
||||
event.stopPropagation();
|
||||
onMouseOverItem(event);
|
||||
}
|
||||
]]></handler>
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
]]></handler>
|
||||
<handler event="mouseover"><![CDATA[
|
||||
if (this.calendarView && this.calendarView.controller) {
|
||||
event.preventBubble();
|
||||
event.stopPropagation();
|
||||
onMouseOverItem(event);
|
||||
}
|
||||
]]></handler>
|
||||
|
|
Загрузка…
Ссылка в новой задаче