Skip to content

Commit e4ce2fd

Browse files
committed
Animation: Clarify that complete callback is per element
Fixes gh-291 Closes gh-292
1 parent 4c74b76 commit e4ce2fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0"?>
22
<argument name="complete" type="Function" optional="true">
3-
<desc>A function to call once the animation is complete.</desc>
3+
<desc>A function to call once the animation is complete, called once per matched element.</desc>
44
</argument>

includes/animation-signature-options.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</type>
1919
</property>
2020
<property name="complete" type="Function">
21-
<desc>A function to call once the animation is complete.</desc>
21+
<desc>A function to call once the animation is complete, called once per matched element.</desc>
2222
</property>
2323
<property name="queue" default="true">
2424
<type name="Boolean"/>

includes/class-animation-argument-options.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<desc>A string indicating which <a href="/easings/">easing</a> function to use for the transition.</desc>
1515
</property>
1616
<property name="complete" type="Function" optional="true">
17-
<desc>A function to call once the animation is complete.</desc>
17+
<desc>A function to call once the animation is complete, called once per matched element.</desc>
1818
</property>
1919
<property name="children" type="Boolean" default="false">
2020
<desc>Whether the animation should additionally be applied to all descendants of the matched elements. This feature should be used with caution as the cost of determining which descendants to animate can be very expensive, and grows linearly with the number of descendants.</desc>

0 commit comments

Comments
 (0)