Skip to content

Commit e8d9aa2

Browse files
committed
Fix indention
1 parent eeb27eb commit e8d9aa2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

jquery.pjax.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,18 +261,18 @@ function pjax(options) {
261261
if (container.title) document.title = container.title
262262
context.html(container.contents)
263263

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+
})
276276

277277
// Scroll to top by default
278278
if (typeof options.scrollTo === 'number')

0 commit comments

Comments
 (0)