mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Use $scope instead of scope in directives
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
function closeMenu() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function(scope, element, attrs) {
|
||||
link: function($scope, element, attrs) {
|
||||
element.on('click', function(event) {
|
||||
scope._expandedMenu = null;
|
||||
scope.$apply()
|
||||
$scope._expandedMenu = null;
|
||||
$scope.$apply()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user