tracker issue : CF-4205065

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Doc Bug for: IsCustomFunction() doc outdated per CF-3429588 fix

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

Reporter/Name(from Bugbase): Aaron N. / ()

Created: 08/28/2019

Components: Documentation

Versions: 2018

Failure Type: Conflict With Docs

Found In Build/Fixed In Build: 2018.0.04.314546 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: IsCustomFunction() doc outdated per CF-3429588 fix

The IsCustomFunction() doc wasn't updated after CF-3429588 fixed IsCustomFunction() to again return true for function expressions. There are 3 issues:

1) The Usage section needs updated to clarify that function expressions are considered custom functions.

Current wording:

-----------
 The IsCustomFunction function returns True for any function that can be called as a custom function, including functions defined using CFScript function declarations and cffunction tags, and functions that are ColdFusion component methods. For CFC methods, first instantiate the component.
 -----------

Suggested wording (note the inclusion of "CFScript function expressions"):

-----------
 The IsCustomFunction function returns True for any function that can be called as a custom function, including functions defined using CFScript function declarations, CFScript function expressions, cffunction tags, and functions that are ColdFusion component methods. For CFC methods, first instantiate the component.
 -----------

2) The following needs removed:
 -----------
 Note: This function does not return true if the function was defined using a function expression, eg:

return 1;
 }
 -----------

3) The following needs removed (it's not even a relevant example b/c result holds a string value "Greater"):
 -----------
 // Non-customfunction

n1=1;
 n2=1;
 sum = n1 + n2;
 result = IIf(3 > "#sum#" , DE("Greater"), DE("Lesser"))
 writeoutput("Is it a customFunction: " & isCustomFunction(result) & "");

Is it customFunction: NO
 -----------

Related URL: [https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-in-k/iscustomfunction.html]

Attachments:

Comments:

I wish I could edit the ticket title. My typo "oudated" should be "outdated". Adobe, could you please change that? :) And in the 1st line of the description.. Thanks!, -Aaron
Comment by Aaron N.
31236 | August 28, 2019 11:15:10 AM GMT