Skip to content
Permalink
Browse files

Avoid potential for breakage if test suite is run in a frame

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Feb 3, 2013
1 parent fd43865 commit 7b50c4a711ed217767af0956043b901fa89d4671
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/data/onbeforeunload.html
@@ -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 ) {

0 comments on commit 7b50c4a

Please sign in to comment.
You can’t perform that action at this time.