Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / ()
Created: 08/15/2018
Components: Documentation
Versions: 2018
Failure Type: Others
Found In Build/Fixed In Build: 0 / docs
Priority/Frequency: Normal / Some users will encounter
Locale/System: / Platforms All
Vote Count: 0
Issue: "Using closures" doc has many code examples that use optional arguments w/o checking for their existence
Suggestion: Make those arguments required
Example Before:
-----------
function helloTranslator(String helloWord) {
return function(String name) {
return "#helloWord#, #name#";
};
}
-----------
Example After:
-----------
function helloTranslator(required String helloWord) {
return function(required String name) {
return "#helloWord#, #name#";
};
}
-----------
Note: There are many code examples on that page needing same fix.
Related URL: https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-language/extending-coldfusion-pages-with-cfml-scripting/using-closures.html
Attachments:
Comments: