SIGN IN SIGN UP
SortableJS / Sortable UNCLAIMED

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.

0 0 0 JavaScript

knockout: run deferred tasks early

If `ko.options.deferUpdates = true`, then updates to the UI don't happen immediately when you modify the viewModel. 
For the sortable binding, this means that after removing a moved item, it doesn't recreate it at the new position.
Calling `ko.tasks.runEarly` before re-inserting the item into the observableArray makes KO register the removal.

This is the fix proposed by @adriaanmeuris in RubaXa/Sortable#712
C
Christian Lawson-Perfect committed
aaf292c538d266490cb58f55c07c523330d0ef3a
Parent: e1a6558
Committed by GitHub <noreply@github.com> on 6/13/2016, 9:00:13 AM