Clean: unused function

This commit is contained in:
2015-10-01 14:13:10 +00:00
parent 2d3d18ba9b
commit 7b44292c96

View File

@@ -13,27 +13,8 @@
service.success = success;
service.error = error;
initService();
return service;
function initService() {
$rootScope.$on('$locationChangeStart', function() {
clearFlashMessage();
});
function clearFlashMessage() {
var flash = $rootScope.flash;
if( flash ) {
if( !flash.keepAfterLocationChange ) {
delete $rootScope.flash;
} else {
flash.keepAfterLocationChange = false;
}
}
}
}
function success(message, keepAfterLocationChange) {
growl.success(message,{title: 'Success!'});
}