Cocos2d-JS cc.callFunc Bug

When calling cc.callFunc with an anonymous function like this:

this.runAction(cc.callFunc(this.someFunction, this, data));

the data is not sent into the function, instead the “this” object is sent as the parameter data. Try doing this as a test:

someFunction: function(data){
cc.log(JSON.stringify(data));
}

and the log will show the “this” object.
I have tested this with various data types in cocos IDE 1.0 and 1.1;

the cc.callFunc seems to return 2 arguments.

Try this
someFunction: function(obj, data) {
cc.log(JSON.stringify(data));
}

Yeah, I should have thought of that. The object is being passed as the first parameter. Thanks!