Opened 15 years ago
Closed 15 years ago
#944 closed defect (invalid)
dojo.lang.find has a boolean 'identity' parameter which seems to run identical code blocks regardless of whether it is true or false.
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
While browsing through the code I noticed that this function seems to run the exact same code regardless of the value of the 'identity' parameter and there seems to be no other use for the parameter.
Note: See
TracTickets for help on using
tickets.
The code is slightly different and is documented as such:
param: identity: If true, matches with identity comparison (===). If false, uses normal comparison (==).