File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -281,14 +281,14 @@ function pjax(options) {
281
281
state : pjax . state ,
282
282
previousState : previousState
283
283
} )
284
- context . html ( container . contents )
284
+ options . context . html ( container . contents )
285
285
286
286
// FF bug: Won't autofocus fields that are inserted via JS.
287
287
// This behavior is incorrect. So if theres no current focus, autofocus
288
288
// the last field.
289
289
//
290
290
// http://www.w3.org/html/wg/drafts/html/master/forms.html
291
- var autofocusEl = context . find ( 'input[autofocus], textarea[autofocus]' ) . last ( ) [ 0 ]
291
+ var autofocusEl = options . context . find ( 'input[autofocus], textarea[autofocus]' ) . last ( ) [ 0 ]
292
292
if ( autofocusEl && document . activeElement !== autofocusEl ) {
293
293
autofocusEl . focus ( ) ;
294
294
}
You can’t perform that action at this time.
0 commit comments