Skip to content

Commit 110f0c9

Browse files
committed
Merge pull request #291 from pborreli/typos
Fixed typos
2 parents 6ccd315 + b6db5a0 commit 110f0c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jquery.pjax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function onPjaxPopstate(event) {
384384
var state = event.state
385385

386386
if (state && state.container) {
387-
// When coming forward from a seperate history session, will get an
387+
// When coming forward from a separate history session, will get an
388388
// initial pop with a state we are already at. Skip reloading the current
389389
// page.
390390
if (initialPop && initialURL == state.url) return
@@ -648,7 +648,7 @@ function extractContainer(data, xhr, options) {
648648
// Remove any parent title elements
649649
obj.contents = obj.contents.not(function() { return $(this).is('title') })
650650

651-
// Then scrub any titles from their descendents
651+
// Then scrub any titles from their descendants
652652
obj.contents.find('title').remove()
653653

654654
// Gather all script[src] elements

test/unit/pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ if ($.support.pjax) {
855855
frame.history.forward()
856856
setTimeout(function() { window.iframeLoad(frame) }, 1000)
857857
} else if (count == 6) {
858-
// Should skip pjax:popstate since theres no initial pjax.state
858+
// Should skip pjax:popstate since there's no initial pjax.state
859859
frame.$('#main').on('pjax:popstate', function(event) {
860860
if (count == 6) {
861861
ok(event.state.url.match("/hello.html"), event.state.url)

0 commit comments

Comments
 (0)