Skip to content

Commit

Permalink
Merge pull request knockout#1613 from klinden/ie8-apply
Browse files Browse the repository at this point in the history
IE8 throws errors when calling apply with second argument undefined
  • Loading branch information
SteveSanderson committed Apr 6, 2015
2 parents 7752dde + 21ed0e7 commit 4208880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binding/editDetection/arrayToDomNodeChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
mapData.dependentObservable.dispose();

// Queue these nodes for later removal
nodesToDelete.push.apply(nodesToDelete, ko.utils.fixUpContinuousNodeArray(mapData.mappedNodes, domNode));
nodesToDelete.push.apply(nodesToDelete, ko.utils.fixUpContinuousNodeArray(mapData.mappedNodes, domNode) || []);
if (options['beforeRemove']) {
itemsForBeforeRemoveCallbacks[i] = mapData;
itemsToProcess.push(mapData);
Expand Down

0 comments on commit 4208880

Please sign in to comment.