We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35780e commit 3186567Copy full SHA for 3186567
src/ui-scroll.js
@@ -553,8 +553,8 @@ angular.module('ui.scroll', [])
553
viewport.createPaddingElements(template[0]);
554
// Destroy template's scope to remove any watchers on it.
555
scope.$destroy();
556
- // also remove the template when the directive scope is destroyed
557
- $scope.$on('$destroy', () => template.remove());
+ // We don't need template anymore.
+ template.remove();
558
});
559
560
adapter.reload = reload;
0 commit comments