cocos2d/cocos2d-iphone-extensions — pull request #118 by Zakay (2012-09-26 19:35:02+00:00)
Title: When claiming touch do it in an orderly fashion

First let the handler claim it, then cancel it on the rest of the handlers.

I came across a bug when a hade a handler that worked as a proxy handler.
CCScrollLayer looped through the handlers and claimed/cancelled without any order, the bug was when it first sent cancel to the proxy handler which in turn checked for all the "subhandlers" it proxies events too that subhandler hasn't claimed the touch then cancel. And because the claim wasn't made first, the proxy handler cancelled the event on all subhandlers, which then ended up in a crash.