Add `updateTexture` & some shortcuts in Sprite; Cosmetic (#4000)
* Add `updateText` and some shortcuts for texture

* Add `updateText`.  If a sprite is create by a canvas ,  when the canvas's changed , user could call `updateText` for updating sprite.
* Add some shortcuts for accessing  some properties of sprite._texture.

* Cosmetic, for DRY

Just define some local vars for accessing properties of `this` , for DRY.

* remove the changing of Sprite
1 parent 2c20d70 commit 07eb79c4e4edb1cc4f52b7105e54ddd77868acdf
@finscn finscn authored on 9 May 2017
Matt Karl committed on 9 May 2017
Showing 1 changed file
View
src/core/text/Text.js