rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
548 stars 128 forks source link

fix strategyMove with plain arrays #164

Closed Manuel-S closed 8 years ago

Manuel-S commented 8 years ago

If using a plain array as data source, for example when using knockout-es5, the "valueWillMutate" and "valueHasMutated" methods do not exist and do not need to be called, if they don't.

mbest commented 8 years ago

When using knockout-es5, "strategyMove" won't really be different from the default behavior (delete/add).

Manuel-S commented 8 years ago

Fair enough. But for a pure array using "strategyMove" could be a viable option.