diff --git a/js/widgets/pagecontainer.js b/js/widgets/pagecontainer.js index c08ea9d7082..c39c9a0677f 100644 --- a/js/widgets/pagecontainer.js +++ b/js/widgets/pagecontainer.js @@ -538,7 +538,7 @@ define( [ // Note that it is the responsibility of the listener/handler // that called preventDefault(), to resolve/reject the // deferred object within the triggerData. - if ( this._triggerWithDeprecated( "load" ).event.isDefaultPrevented() ) { + if ( this._triggerWithDeprecated( "load", triggerData ).event.isDefaultPrevented() ) { return; } diff --git a/tests/integration/pagecontainer/page_event_sequence_core.js b/tests/integration/pagecontainer/page_event_sequence_core.js index 3ef0bf1105a..e4ddf2b366e 100644 --- a/tests/integration/pagecontainer/page_event_sequence_core.js +++ b/tests/integration/pagecontainer/page_event_sequence_core.js @@ -98,11 +98,11 @@ asyncTest( "Event sequence during navigation to another page", function() { // Deprecated as of 1.4.0 { type: "pageload", target: "the-body", - data: { prevPage: undefined, nextPage: undefined, toPage: undefined } }, + data: { prevPage: "start-page", nextPage: undefined, toPage: "other-page" } }, // Valid { type: "pagecontainerload", target: "the-body", - data: { prevPage: undefined, nextPage: undefined, toPage: undefined } }, + data: { prevPage: "start-page", nextPage: undefined, toPage: "other-page" } }, // Valid - page widget events { type: "pagebeforecreate", target: "other-page",