Skip to content

Commit ea5cbd3

Browse files
authored
Fix typo of error message
1 parent 2083141 commit ea5cbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cocos2d/core/CCActionManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ cc.ActionManager = cc.Class.extend(/** @lends cc.ActionManager# */{
116116
if(!action)
117117
throw new Error("cc.ActionManager.addAction(): action must be non-null");
118118
if(!target)
119-
throw new Error("cc.ActionManager.addAction(): action must be non-null");
119+
throw new Error("cc.ActionManager.addAction(): target must be non-null");
120120

121121
//check if the action target already exists
122122
var element = this._hashTargets[target.__instanceId];

0 commit comments

Comments
 (0)