cocos2d/cocos2d-x — pull request #2824 by edwardzhou (2013-06-08 05:33:13+00:00)
Title: Cast variables to their own type, and print warning info if no corresponding lua callback function instead of crash

1) cast variables to their own type;
2) print warning info if no corresponding lua callback function instead of crash;