Skip to content

Commit

Permalink
Fix some formatting issues from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 1, 2016
1 parent d6945e6 commit e6e926d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/directives/pagination/dirPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
// Now that we have access to the `scope` we can interpolate any expression given in the paginationId attribute and
// potentially register a new ID if it evaluates to a different value than the rawId.
var paginationId = $parse(attrs.paginationId)(scope) || attrs.paginationId || DEFAULT_ID;
// In case rawId != paginationId we deregister using rawId for the sake of general cleanliness
// before registering using paginationId
paginationService.deregisterInstance(rawId);
// In case rawId != paginationId we deregister using rawId for the sake of general cleanliness
// before registering using paginationId
paginationService.deregisterInstance(rawId);
paginationService.registerInstance(paginationId);

var repeatExpression = getRepeatExpression(expression, paginationId);
Expand Down Expand Up @@ -106,11 +106,11 @@
// Delegate to the link function returned by the new compilation of the ng-repeat
compiled(scope);

// When the scope is destroyed, we make sure to remove the reference to it in paginationService
// so that it can be properly garbage collected
scope.$on('$destroy', function destroyDirPagination() {
paginationService.deregisterInstance(paginationId);
});
// When the scope is destroyed, we make sure to remove the reference to it in paginationService
// so that it can be properly garbage collected
scope.$on('$destroy', function destroyDirPagination() {
paginationService.deregisterInstance(paginationId);
});
};
}

Expand Down Expand Up @@ -530,7 +530,7 @@
};

this.deregisterInstance = function(instanceId) {
delete instances[instanceId];
delete instances[instanceId];
};

this.isRegistered = function(instanceId) {
Expand Down

0 comments on commit e6e926d

Please sign in to comment.