Permalink
Browse files

Pagecontainer: Pass triggerData with load event

Fixes gh-7580
Closes gh-7581
  • Loading branch information...
Rob DiCiuccio authored and arschmitz committed Jul 18, 2014
1 parent 2637803 commit af08283cf3e81804b43bc8f0498e6a3128a16ee1
Showing with 3 additions and 3 deletions.
  1. +1 −1 js/widgets/pagecontainer.js
  2. +2 −2 tests/integration/pagecontainer/page_event_sequence_core.js
@@ -550,7 +550,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;
}
@@ -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",

0 comments on commit af08283

Please sign in to comment.