Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPArray's indexOfObject: & al. return -1 when not found.

#203

Should be CPNotFound instead.

Solution = when javascript function indexOf(object) evaluates to -1, return CPNotFound for the method.

Reported by cacaodev · January 23rd, 2009 @ 05:45 AM

State: invalid
Milestone: none
Assigned to: Ross Boucher Ross Boucher

Activity

  1. Francisco Tolmasky
    Francisco Tolmasky

    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?

    January 23rd, 2009 @ 06:57 AM

  2. cacaodev
    cacaodev

    oups, i should have check this.

    January 23rd, 2009 @ 08:45 AM

  3. Francisco Tolmasky
    Francisco Tolmasky
    • State changed from new to invalid

    January 24th, 2009 @ 08:55 PM

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.