diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-03 22:43:51 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-04 20:49:57 -0500 |
commit | 06adf7c95d93507908181995a9ea15fe2729595a (patch) | |
tree | f662545c63eb50f31f0aef37dd82494311cf30d5 /src | |
parent | 3a68c114e3a30af86dc261c9d62ce2ae4144d420 (diff) | |
download | jquery-06adf7c95d93507908181995a9ea15fe2729595a.tar.gz jquery-06adf7c95d93507908181995a9ea15fe2729595a.zip |
Event: Allow triggerHandler(beforeunload)
Fixes #14791
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index 8d4031211..ee1f3fcad 100644 --- a/src/event.js +++ b/src/event.js @@ -583,7 +583,7 @@ jQuery.event = { // Support: Firefox 20+ // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined ) { + if ( event.result !== undefined && event.originalEvent ) { event.originalEvent.returnValue = event.result; } } |