Skip to content

Commit

Permalink
Fixed observableArray extended with deferred: true removes items from…
Browse files Browse the repository at this point in the history
… list rniemeyer#184
  • Loading branch information
ksirmons committed May 4, 2017
1 parent 426300f commit ab869f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
4 changes: 2 additions & 2 deletions src/knockout-sortable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;(function(factory) {
;(function(factory) {
if (typeof define === "function" && define.amd) {
// AMD anonymous module
define(["knockout", "jquery", "jquery-ui/ui/widgets/sortable", "jquery-ui/ui/widgets/draggable", "jquery-ui/ui/widgets/droppable"], factory);
Expand Down Expand Up @@ -273,7 +273,7 @@
}

//if using deferred updates on knockout 3.4, force updates
if (ko.options && ko.options.deferUpdates) {
if ((ko.options && ko.options.deferUpdates) || (sourceParent && sourceParent._deferUpdates)) {
ko.tasks.runEarly();
}
}
Expand Down

0 comments on commit ab869f0

Please sign in to comment.