issue #1530: Assigned JSVAL_VOID to member variables for JSCallbackWrapper class.

This commit is contained in:
James Chen 2012-11-01 15:45:22 +08:00
parent b3c6f1a2e1
commit 026662ee5f
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ void register_cocos2dx_js_extensions(JSContext* cx, JSObject* obj);
class JSCallbackWrapper: public CCObject {
public:
JSCallbackWrapper() {}
JSCallbackWrapper() : jsCallback(JSVAL_VOID), jsThisObj(JSVAL_VOID), extraData(JSVAL_VOID) {}
virtual ~JSCallbackWrapper(void) {}
void setJSCallbackFunc(jsval obj);
void setJSCallbackThis(jsval thisObj);