File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -447,10 +447,10 @@ function onPjaxPopstate(event) {
447
447
if ( contents ) {
448
448
container . trigger ( 'pjax:start' , [ null , options ] )
449
449
450
+ pjax . state = state
450
451
if ( state . title ) document . title = state . title
451
452
container . trigger ( 'pjax:beforeReplace' , [ contents , options ] )
452
453
container . html ( contents )
453
- pjax . state = state
454
454
455
455
container . trigger ( 'pjax:end' , [ null , options ] )
456
456
} else {
Original file line number Diff line number Diff line change @@ -547,6 +547,7 @@ if ($.support.pjax) {
547
547
ok ( contents )
548
548
equal ( $ ( event . target ) . text ( ) , beforeContent )
549
549
equal ( options . url , "hello.html" )
550
+ ok ( frame . $ . pjax . state . url . match ( "/hello.html" ) )
550
551
} )
551
552
frame . $ ( "#main" ) . on ( "pjax:success" , function ( event ) {
552
553
notEqual ( $ ( event . target ) . text ( ) , beforeContent )
@@ -866,6 +867,7 @@ if ($.support.pjax) {
866
867
equal ( frame . location . pathname , "/home.html" )
867
868
// Remember: the content hasn't yet been replaced.
868
869
notEqual ( $ ( event . target ) . html ( ) , originalContent )
870
+ ok ( frame . $ . pjax . state . url . match ( "/home.html" ) )
869
871
start ( )
870
872
} )
871
873
You can’t perform that action at this time.
0 commit comments