refactor(ngPluralize):delete default directive restriction

delete the directive restriction to avoid code duplication since the default is already applied

Closes #11301
This commit is contained in:
Diego
2015-03-11 19:58:26 -03:00
committed by Pawel Kozlowski
parent 2979bf38dd
commit 3613a6007c
-1
View File
@@ -180,7 +180,6 @@ var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale,
IS_WHEN = /^when(Minus)?(.+)$/;
return {
restrict: 'EA',
link: function(scope, element, attr) {
var numberExp = attr.count,
whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs