Permalink
Browse files

Pagecontainer: Pass triggerData with load event

Fixes gh-7580
Closes gh-7581

(cherry picked from commit af08283)
  • Loading branch information...
1 parent 62695d4 commit d1bb77fd0d2d4330e85fb5be9360e6385671cb40 @robdiciuccio robdiciuccio committed with arschmitz Jul 18, 2014
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
@@ -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;
}
@@ -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 d1bb77f

Please sign in to comment.