Commit 43a4b519 authored by Sam Saccone's avatar Sam Saccone

angularjs-perf: Fix directive memory leak

parent 9f5d2a52
......@@ -13,5 +13,9 @@ todomvc.directive('todoEscape', function () {
scope.$apply(attrs.todoEscape);
}
});
scope.$on('$destroy', function () {
elem.unbind('keydown');
});
};
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment