cocos2d/cocos2d-x — pull request #2356 by MarkEHenderson (2013-04-11 22:07:12+00:00)
Title: Fix variable initialization in SpriteBatchNode and LabelBMFont to allow JS extension

Initialize a few variables to null when SpriteBatchNode and LabelBMFont are constructed.

Without this, creating then destroying a LabelBMFont without calling its init method will result in a crash (about 90% of time on android, about 10% of time on IOS).

The extend function in the JS bindings will create an instance of each class that is extended, so this checkin is needed to allow JS level LabelBMFont extension.