Skip to content

Commit df56c3e

Browse files
committed
Effects: Add explanatory comments for prefilter step
1 parent b4b8894 commit df56c3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/effect.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,9 @@ $.fn.extend({
13471347
}
13481348
}
13491349

1350+
// run prefilter on all elements first to ensure that
1351+
// any showing or hiding happens before placeholder creation,
1352+
// which ensures that any layout changes are correctly captured
13501353
return queue === false ?
13511354
this.each( prefilter ).each( run ) :
13521355
this.queue( queue || "fx", prefilter ).queue( queue || "fx", run );

0 commit comments

Comments
 (0)