Fixed minification error in $log decorator

This commit is contained in:
Chris Houseknecht
2014-07-11 11:26:07 -04:00
parent abf134b7ce
commit 6528a91860
2 changed files with 5 additions and 5 deletions

View File

@@ -393,8 +393,8 @@ angular.module('Tower', [
} }
]) ])
.config(function($provide) { .config(['$provide', function($provide) {
$provide.decorator('$log', function($delegate) { $provide.decorator('$log', ['$delegate', function($delegate) {
var _debug = $delegate.debug; var _debug = $delegate.debug;
$delegate.debug = function(msg) { $delegate.debug = function(msg) {
// only show debug messages when debug_mode set to true in config // only show debug messages when debug_mode set to true in config
@@ -403,8 +403,8 @@ angular.module('Tower', [
} }
}; };
return $delegate; return $delegate;
}); }]);
}) }])
.run(['$compile', '$cookieStore', '$rootScope', '$log', 'CheckLicense', '$location', 'Authorization', 'LoadBasePaths', 'ViewLicense', .run(['$compile', '$cookieStore', '$rootScope', '$log', 'CheckLicense', '$location', 'Authorization', 'LoadBasePaths', 'ViewLicense',
'Timer', 'ClearScope', 'HideStream', 'Socket', 'Timer', 'ClearScope', 'HideStream', 'Socket',

View File

@@ -14,7 +14,7 @@ var $AnsibleConfig = {
tooltip_delay: {show: 500, hide: 100}, // Default number of milliseconds to delay displaying/hiding tooltips tooltip_delay: {show: 500, hide: 100}, // Default number of milliseconds to delay displaying/hiding tooltips
debug_mode: true, // Enable console logging messages debug_mode: false, // Enable console logging messages
password_strength: 45, // User password strength. Integer between 0 and 100, 100 being impossibly strong. password_strength: 45, // User password strength. Integer between 0 and 100, 100 being impossibly strong.
// This value controls progress bar colors: // This value controls progress bar colors: