Synchronizing some JSB changes in cocos2d-iphone. Fix a bug of "Too much recursion" in loop.
Merge pull request #2451 from dumganhar/master

Synchronizing some JSB changes in cocos2d-iphone. Fix a bug of "Too much recursion" in loop.