Skip to content

Commit 479c41a

Browse files
author
0xAX
committed
Merge pull request #11 from curts/master
Fix scope issue with accordion
2 parents 31a658f + ea5636e commit 479c41a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/accordion/accordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ angular.module('angularify.semantic.accordion', [])
88
this.add_accordion = function(scope) {
99
$scope.accordions.push(scope);
1010

11-
11+
var _this = this;
1212
scope.$on('$destroy', function (event) {
13-
this.remove_accordion(scope);
13+
_this.remove_accordion(scope);
1414
});
1515

1616
return $scope.accordions;

0 commit comments

Comments
 (0)