Synchonously ==> Synchronously

pull/555/head
ydah 3 months ago
parent 85dc2c8f83
commit 3df7848991

@ -300,7 +300,7 @@ class Shuffle extends TinyEmitter {
const { speed, easing } = this.options;
const positionProps = this.options.useTransforms ? ['transform'] : ['top', 'left'];
// Allow users to transtion other properties if they exist in the `before`
// Allow users to transition other properties if they exist in the `before`
// css mapping of the shuffle item.
const cssProps = Object.keys(ShuffleItem.Css.HIDDEN.before).map((k) => hyphenate(k));
const properties = positionProps.concat(cssProps).join();
@ -876,7 +876,7 @@ class Shuffle extends TinyEmitter {
};
// Layout all items again so that new items get positions.
// Synchonously apply positions.
// Synchronously apply positions.
const itemPositions = this._getNextPositions(allSortedItemsSet.visible);
allSortedItemsSet.visible.forEach((item, i) => {
if (isNewItem(item)) {

Loading…
Cancel
Save