lib/assets/javascripts/up/flow.js.coffee in upjs-rails-0.6.1 vs lib/assets/javascripts/up/flow.js.coffee in upjs-rails-0.6.2
- old
+ new
@@ -63,13 +63,12 @@
selectorOrElement
else
u.createSelectorFromElement($(selectorOrElement))
if !up.browser.canPushState() && !u.castsToFalse(options.history)
- if !options.preload
- up.browser.loadPage(url, u.only(options, 'method'))
- return
-
+ up.browser.loadPage(url, u.only(options, 'method')) unless options.preload
+ return u.resolvedPromise()
+
request =
url: url
method: options.method
selector: selector
cache: options.cache