Currenty, if you have pjax disabled, it uses the fallbackPjax function and you have code that relies on Promises like this:
$.pjax({
url: '/'
}).then(function() {
// .. do something
});
This code above will break with TypeError: undefined is not an object (evaluating '$.pjax({ url: '/' }).then') due to $.pjax not returning a then-able object.
Currenty, if you have pjax disabled, it uses the
fallbackPjax
function and you have code that relies on Promises like this:This code above will break with
TypeError: undefined is not an object (evaluating '$.pjax({ url: '/' }).then')
due to$.pjax
not returning a then-able object.