diff --git a/src/directives/pagination/dirPagination.js b/src/directives/pagination/dirPagination.js index a1a7265..29c0053 100644 --- a/src/directives/pagination/dirPagination.js +++ b/src/directives/pagination/dirPagination.js @@ -68,7 +68,7 @@ // 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; - + // (TODO: this seems sound, but I'm reverting as many bug reports followed it's introduction in 0.11.0. // Needs more investigation.) // In case rawId != paginationId we deregister using rawId for the sake of general cleanliness @@ -108,7 +108,7 @@ // Delegate to the link function returned by the new compilation of the ng-repeat compiled(scope); - + // (TODO: Reverting this due to many bug reports in v 0.11.0. Needs investigation as the // principle is sound) // When the scope is destroyed, we make sure to remove the reference to it in paginationService @@ -222,7 +222,7 @@ } function dirPaginationControlsTemplateInstaller($templateCache) { - $templateCache.put('angularUtils.directives.dirPagination.template', '
'); + $templateCache.put('angularUtils.directives.dirPagination.template', ''); } function dirPaginationControlsDirective(paginationService, paginationTemplate) { @@ -235,7 +235,8 @@ maxSize: '=?', onPageChange: '&?', paginationId: '=?', - autoHide: '=?' + autoHide: '=?', + size: '@' }, link: dirPaginationControlsLinkFn }; @@ -551,7 +552,7 @@ this.deregisterInstance = function(instanceId) { delete instances[instanceId]; }; - + this.isRegistered = function(instanceId) { return (typeof instances[instanceId] !== 'undefined'); };