mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Encapsulate directive functions in anonymous functions - avoid the global namespace
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('habitrpg')
|
||||
.directive('popoverHtml', popoverHtml);
|
||||
(function(){
|
||||
angular
|
||||
.module('habitrpg')
|
||||
.directive('popoverHtml', popoverHtml);
|
||||
|
||||
popoverHtml.$inject = [
|
||||
'$compile',
|
||||
'$timeout',
|
||||
'$parse',
|
||||
'$window',
|
||||
'$tooltip'
|
||||
];
|
||||
popoverHtml.$inject = [
|
||||
'$compile',
|
||||
'$timeout',
|
||||
'$parse',
|
||||
'$window',
|
||||
'$tooltip'
|
||||
];
|
||||
|
||||
function popoverHtml($compile, $timeout, $parse, $window, $tooltip) {
|
||||
return $tooltip('popoverHtml', 'popover', 'click');
|
||||
}
|
||||
function popoverHtml($compile, $timeout, $parse, $window, $tooltip) {
|
||||
return $tooltip('popoverHtml', 'popover', 'click');
|
||||
}
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user