Permalink
Browse files

wrap beforeMove and afterMove callbacks using makeIgnoredCallback

  • Loading branch information...
1 parent be6bd84 commit ee389b90bc87d233814de0b838cca02b86ef87cd @mbest mbest committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/templating/templating.js
@@ -190,7 +190,7 @@
shouldDisplay = shouldDisplay && !ko.utils.unwrapObservable(bindingValue['ifnot']);
// Ensure that the callbacks don't add any dependencies to the template code
- ko.utils.arrayForEach(['afterRender', 'afterAdd', 'beforeRemove'], function(propName) {
+ ko.utils.arrayForEach(['afterRender', 'afterAdd', 'beforeRemove', 'beforeMove', 'afterMove'], function(propName) {
if (bindingValue[propName])
bindingValue[propName] = ko.dependencyDetection.makeIgnoredCallback(bindingValue[propName]);
})

0 comments on commit ee389b9

Please sign in to comment.