API improvements: cc.Sprite.createWithSpriteFrameName() inconsistency #567

Closed
ricardoquesada opened this Issue Oct 3, 2012 · 1 comment

Projects

None yet

2 participants

@ricardoquesada
Contributor

Sprite.createWithSpriteFrameName() is confusing since it accepts both a spriteFrame and a spriteFrameName.

What it should do is to accept only spriteFrameName types.

Another constructor should be added for spriteFrame.
eg:
Sprite.createWithSpriteFrame().

Note: the current API is not compatible with the JS Bindings.

@linshun
Contributor
linshun commented Feb 25, 2013

It has been fixed.

@linshun linshun closed this Feb 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment