When pasting, there's a bug where we call allowDefault() on the browser's event object rather than SC.Event.
Details: the original code assigns evt = evt.originalEvent, where originalEvent is a browser event object. However, later on, if that event doesn't support clipboardData (on line 1022), the code calls allowDefault() on that browser object, even though allowDefault() is an SC.Event method.
The fix here is to avoid reassigning evt, so that evt remains the SC.Event instance.
When pasting, there's a bug where we call
allowDefault()
on the browser's event object rather thanSC.Event
.Details: the original code assigns
evt = evt.originalEvent
, whereoriginalEvent
is a browser event object. However, later on, if that event doesn't supportclipboardData
(on line 1022), the code callsallowDefault()
on that browser object, even thoughallowDefault()
is anSC.Event
method.The fix here is to avoid reassigning
evt
, so thatevt
remains theSC.Event
instance.