mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Avoid potential for breakage if test suite is run in a frame
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
fd43865c6d
commit
7b50c4a711
@ -6,7 +6,7 @@
|
||||
var payload = {
|
||||
event: event.type
|
||||
};
|
||||
return top.postMessage( JSON.stringify(payload), "*" );
|
||||
return parent.postMessage( JSON.stringify(payload), "*" );
|
||||
}
|
||||
|
||||
jQuery( window ).on( "beforeunload", function( event ) {
|
||||
|
Loading…
Reference in New Issue
Block a user