From 58205a82bb12e94aca77a552cda40cde6c35fba7 Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Fri, 13 Nov 2015 16:55:32 +0100 Subject: [PATCH] refactor(dropdown): remove unneeded Closes #4893 --- src/dropdown/dropdown.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/dropdown/dropdown.js b/src/dropdown/dropdown.js index 7b3100881d..def60d197c 100644 --- a/src/dropdown/dropdown.js +++ b/src/dropdown/dropdown.js @@ -264,11 +264,6 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position']) scope.isOpen = false; } }); - - var offDestroy = $scope.$on('$destroy', function() { - scope.$destroy(); - }); - scope.$on('$destroy', offDestroy); }]) .directive('uibDropdown', function() {