Skip to content

Commit 58c8700

Browse files
committed
Don't default fragment to null
1 parent d3aa7a1 commit 58c8700

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jquery.pjax.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ function handleClick(event, container, options) {
8585
var defaults = {
8686
url: link.href,
8787
container: $(link).attr('data-pjax'),
88-
target: link,
89-
fragment: null
88+
target: link
9089
}
9190

9291
var opts = $.extend({}, defaults, options)
@@ -127,8 +126,7 @@ function handleSubmit(event, container, options) {
127126
url: form.action,
128127
data: $(form).serializeArray(),
129128
container: $(form).attr('data-pjax'),
130-
target: form,
131-
fragment: null
129+
target: form
132130
}
133131

134132
pjax($.extend({}, defaults, options))

0 commit comments

Comments
 (0)