Skip to content

Commit

Permalink
fix: #365 - Issue of angular-permission-ui with gulp-uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
masterspambot committed Jan 30, 2017
1 parent 530a99e commit 705918b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/permission-ui/permission-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
function config($stateProvider) {
'ngInject';

$stateProvider.decorator('$state', function (state) {
function $state($delegate) {
/**
* Property containing full state object definition
*
Expand All @@ -19,12 +19,14 @@ function config($stateProvider) {
*
* @returns {Object}
*/
state.self.$$permissionState = function () {
return state;
$delegate.self.$$permissionState = function () {
return $delegate;
};

return state;
});
return $delegate;
}

$stateProvider.decorator('$state', $state);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/permission/authorization/Authorization.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function PermAuthorization($q) {
* @param deferred {Object} Promise defer
* @param map {permission.PermissionMap} Access rights map
*
* @returns {Promise} $q.promise object
*/
function resolveExceptPrivilegeMap(deferred, map) {
var exceptPromises = map.resolvePropertyValidity(map.except);
Expand Down

0 comments on commit 705918b

Please sign in to comment.