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

refactor(ngMessages): remove unused argument #13087

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ngMessages/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ angular.module('ngMessages', [])
*
* @param {expression} ngMessage|when a string value corresponding to the message key.
*/
.directive('ngMessage', ngMessageDirectiveFactory('AE'))
.directive('ngMessage', ngMessageDirectiveFactory())


/**
Expand Down Expand Up @@ -597,9 +597,9 @@ angular.module('ngMessages', [])
*
* @param {expression} ngMessageExp|whenExp an expression value corresponding to the message key.
*/
.directive('ngMessageExp', ngMessageDirectiveFactory('A'));
.directive('ngMessageExp', ngMessageDirectiveFactory());

function ngMessageDirectiveFactory(restrict) {
function ngMessageDirectiveFactory() {
return ['$animate', function($animate) {
return {
restrict: 'AE',
Expand Down