CPArray's indexOfObject: & al. return -1 when not found.
Reported by cacaodev | January 23rd, 2009 @ 05:45 AM
Should be CPNotFound instead.
Solution = when javascript function indexOf(object) evaluates to -1, return CPNotFound for the method.
Comments and changes to this ticket
-
Francisco Tolmasky January 23rd, 2009 @ 06:57 AM
In Cappuccino land (unlike Cocoa land), CPNotFound === -1. Are you simply saying we should return CPNotFound instead of -1 in case it changes in the future, or is there some other issue you are running into?
-
Francisco Tolmasky January 24th, 2009 @ 08:55 PM
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.