Commit 9f5d2a52 authored by Sam Saccone's avatar Sam Saccone

angularjs: Fix directive memory leak

parent ae1c00ca
......@@ -16,5 +16,9 @@ angular.module('todomvc')
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