Skip to content

Commit

Permalink
fixed a bug of callfunc
Browse files Browse the repository at this point in the history
  • Loading branch information
ShengxiangChen committed Mar 7, 2014
1 parent b8ebaf7 commit 1be7e78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cocos2d/actions/CCActionInstant.js
Expand Up @@ -399,7 +399,10 @@ cc.CallFunc = cc.ActionInstant.extend(/** @lends cc.CallFunc# */{
* execute the function.
*/
execute:function () {
cc.doCallback(this._callFunc, this._selectorTarget,this._data);
if (this._callFunc != null)
this._callFunc.call(this._selectorTarget, this._target, this._data);
else if(this._function)
this._function.call(null, this._target);
},

/**
Expand Down

0 comments on commit 1be7e78

Please sign in to comment.