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:
Rick Waldron 2013-02-03 17:58:07 -05:00
parent fd43865c6d
commit 7b50c4a711

View File

@ -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 ) {