|
|
@ -1013,13 +1013,14 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
var cleanup = angular.noop; |
|
|
|
var cleanup = attrs.watch |
|
|
|
// function () {
|
|
|
|
? angular.noop |
|
|
|
// setTimeout(function () {
|
|
|
|
: function () { |
|
|
|
// $scope.$destroy()
|
|
|
|
setTimeout(function () { |
|
|
|
// stopWatching();
|
|
|
|
$scope.$destroy() |
|
|
|
// }, 0);
|
|
|
|
stopWatching(); |
|
|
|
// };
|
|
|
|
}, 0); |
|
|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
@ -1550,7 +1551,7 @@ angular.module('myApp.directives', ['myApp.filters']) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.directive('myUserLink', function ($window, $timeout, $rootScope, AppUsersManager) { |
|
|
|
.directive('myUserLink', function ($window, $timeout, $rootScope, AppUsersManager) { |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|