lib/assets/javascripts/unpoly/flow.js.coffee in unpoly-rails-0.27.0 vs lib/assets/javascripts/unpoly/flow.js.coffee in unpoly-rails-0.27.1

- old
+ new

@@ -342,10 +342,11 @@ $new = response.find(step.selector)?.first() if $old && $new filterScripts($new, options) swapPromise = swapElements($old, $new, step.pseudoClass, step.transition, options) swapPromises.push(swapPromise) + options.reveal = false # Delay all further links in the promise chain until all fragments have been swapped return $.when(swapPromises...) promise = promise.then(options.afterSwap) if options.afterSwap promise @@ -406,10 +407,10 @@ if pseudoClass # Text nodes are wrapped in a .up-insertion container so we can # animate them and measure their position/size for scrolling. # This is not possible for container-less text nodes. - $wrapper = $new.contents().wrapAll('<span class="up-insertion"></span>').parent() + $wrapper = $new.contents().wrapAll('<div class="up-insertion"></div>').parent() # Note that since we're prepending/appending instead of replacing, # `$new` will not actually be inserted into the DOM, only its children. if pseudoClass == 'before' $old.prepend($wrapper)