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.
2 parents c8ead70 + 3186567 commit 79f2455Copy full SHA for 79f2455
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