-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19462 from bertdeblock/rename-helper-arguments-in…
…-blueprints Use `positional` and `named` as the argument names in `ember g helper` blueprint
- Loading branch information
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export default helper(function <%= camelizedModuleName %>(params/*, hash*/) { | ||
return params; | ||
export default helper(function <%= camelizedModuleName %>(positional/*, named*/) { | ||
return positional; | ||
}); |
4 changes: 2 additions & 2 deletions
4
blueprints/helper/mu-files/__root__/__collection__/__name__.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { helper as buildHelper } from '@ember/component/helper'; | ||
|
||
export function <%= camelizedModuleName %>(params/*, hash*/) { | ||
return params; | ||
export function <%= camelizedModuleName %>(positional/*, named*/) { | ||
return positional; | ||
} | ||
|
||
export const helper = buildHelper(<%= camelizedModuleName %>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export default helper(function fooBarBaz(params/*, hash*/) { | ||
return params; | ||
export default helper(function fooBarBaz(positional/*, named*/) { | ||
return positional; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { helper as buildHelper } from '@ember/component/helper'; | ||
|
||
export function fooBarBaz(params/*, hash*/) { | ||
return params; | ||
export function fooBarBaz(positional/*, named*/) { | ||
return positional; | ||
} | ||
|
||
export const helper = buildHelper(fooBarBaz); |