Skip to content

Commit

Permalink
chore(macros): deprecate ifmethod and ifattribute (mdn#6205)
Browse files Browse the repository at this point in the history
  • Loading branch information
teoli2003 authored and OnkarRuikar committed Jun 2, 2022
1 parent 0cf62b3 commit 2592fb5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kumascript/macros/ifattribute.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
/* creates a link to an attribute in an interface */
/* parameters: interface_name, attribute_name */
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (currently 8 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();
var lang = env.locale;
var destNewType = "/" + lang + '/docs/XPCOM_Interface_Reference/' + $0;
Expand Down
6 changes: 6 additions & 0 deletions kumascript/macros/ifmethod.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
/* creates a link to a method in an interface */
/* parameters: interface name then method name */
/* get a page's language (Don't use page.language!) */
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (currently 26 files)
// 0 occurrences left in en-US
mdn.deprecated();
var lang = env.locale;
var destNewType = lang + '/docs/XPCOM_Interface_Reference/' + $0;
var apiString = $0 + '.' + $1 + '()';
Expand Down

0 comments on commit 2592fb5

Please sign in to comment.