cocos2d/cocos2d-x — pull request #2540 by jotel (2013-05-08 23:32:56+00:00)
Title: Fix for broken ccArrayGetIndexOfObject

The optimisation introduced in 076f38c has broken ccArrayGetIndexOfObject which fails now (i.e. returns CC_INVALID_INDEX) for object inside array but with indexes > 0. And it has nasty effect for all CCTouchHandlers not unregistered and still handling events even if no longer existing...

Here is a fix for that.

Regards
Jaro