Skip to content

Commit c3bc2de

Browse files
author
Tom Barlow
committed
Resolve issue #22 where destroy listener was being called to destroy an accordion in the dropdown module
Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
1 parent 3b8ea85 commit c3bc2de

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/dropdown/dropdown.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ angular.module('angularify.semantic.dropdown', [])
77

88
this.add_item = function (scope) {
99
$scope.items.push(scope);
10-
11-
scope.$on('$destroy', function(event) {
12-
this.remove_accordion(scope);
13-
});
14-
1510
return $scope.items;
1611
};
1712

0 commit comments

Comments
 (0)