File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -261,18 +261,18 @@ function pjax(options) {
261
261
if ( container . title ) document . title = container . title
262
262
context . html ( container . contents )
263
263
264
- container . scripts . each ( function ( _ , script ) {
265
- var $script = $ ( script )
266
- var src = $script . attr ( 'src' )
267
- if ( $ ( 'script[src="' + src + '"]' ) . length ) return
268
-
269
- var target = document . head || context . get ( 0 )
270
- var tag = document . createElement ( 'script' )
271
- tag . type = $script . attr ( 'type' ) || "text/javascript"
272
- tag . async = false
273
- tag . src = src
274
- target . appendChild ( tag )
275
- } )
264
+ container . scripts . each ( function ( _ , script ) {
265
+ var $script = $ ( script )
266
+ var src = $script . attr ( 'src' )
267
+ if ( $ ( 'script[src="' + src + '"]' ) . length ) return
268
+
269
+ var target = document . head || context . get ( 0 )
270
+ var tag = document . createElement ( 'script' )
271
+ tag . type = $script . attr ( 'type' ) || "text/javascript"
272
+ tag . async = false
273
+ tag . src = src
274
+ target . appendChild ( tag )
275
+ } )
276
276
277
277
// Scroll to top by default
278
278
if ( typeof options . scrollTo === 'number' )
You can’t perform that action at this time.
0 commit comments