Skip to content

Commit b13b08f

Browse files
author
jossonsmith
committed
Fix bug: Calling *.onclick/onmouseout/onmouseover() directly in IE may throw errors.
1 parent ef43cf3 commit b13b08f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/internal/dnd/HTMLEventWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public HTMLEventWrapper(Object event) {
5050
5151
// See more about Event properties at
5252
// http://www.quirksmode.org/js/events_properties.html
53-
if (!e) {
53+
if (!e || (window["O$"] != null && O$.isIE)) {
5454
e = window.event;
5555
this.stopPropagation = function () {
5656
this.event.cancelBubble = true;

0 commit comments

Comments
 (0)