Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

refactor(ngPluralize):delete default directive restriction #11301

Closed

Conversation

diegofss11
Copy link
Contributor

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

This line is uneccesary because the default value is set inside the registerDirective function:

directive.index = index;
directive.name = directive.name || name;
directive.require = directive.require || (directive.controller && directive.name);
directive.restrict = directive.restrict || 'EA';

delete the directive restriction to avoid code duplication since the default is already applied
netman92 pushed a commit to netman92/angular.js that referenced this pull request Aug 8, 2015
delete the directive restriction to avoid code duplication since the default is already applied

Closes angular#11301
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants