tracker issue : CF-4152465

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

[ANeff] ER for: delete/deleteNoCase/deleteAt member functions should return a useful value

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/12/2016

Components: Member Functions

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Final / CF 2018 Final Build

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 1

3844976 fixed .append() member functions to return a useful value for chaining. Same should be done for .delete()/.deleteAt().

Repro:

<cfscript> 
 a = ["a", "b", "c"];
 s = {"a"=1, "b"=2, "c"=3};
 
 a.delete("b").each(function(e) {writeOutput(e);});
 a.deleteAt(2).each(function(e) {writeOutput(e);});
 s.delete("b").each(function(k,v) {writeOutput(k);});
</cfscript>

Actual behavior: "The each method was not found."

Expected behavior: "ac"

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4152465

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

Additional related tickets: CF-4152447,CF-4152461,CF-4152471
Comment by External U.
2842 | May 12, 2016 11:19:12 PM GMT
Hi Adobe, Can you please include a.deleteNoCase() in this ticket? Thanks!, -Aaron
Comment by Aaron N.
2843 | October 08, 2017 02:44:52 AM GMT
Added
Comment by Vamseekrishna N.
2844 | October 10, 2017 04:49:45 AM GMT
We have fixed all of the member functions ,mentioned in the bug ,to return useful values, except structobj.delete(). There is a bug logged for structObj.delete() specifically. Hence . closing this.
Comment by Suchika S.
30535 | March 19, 2019 10:00:17 AM GMT