Control whether use core.ticker.shared to update (#3429)
* Control whether use core.ticker.shared to update

Add a argument to control whether use core.ticker.shared to update animation.

Related Issue :  https://github.com/pixijs/pixi.js/issues/3428

Default value is true.
```
new AnimatedSprite(textures)  ---> use core.ticker.shared to update, as same as current version.

new AnimatedSprite(textures, false)   ---> don't use core.ticker.shared to update.
```

* Update JSDoc &  Change autoUpdate to selfUpdate .

* Change selfUpdate back to autoUpdate

This is the last time I modified this PR.
Because I decide to write a new one.

If you don't want to merge this PR , you could close it anytime.

* add    @private to autoUpdate

* Update AnimatedSprite.js

* this.autoUpdate --> this._autoUpdate
1 parent 57780a6 commit 873ea67dd6167e2ddb1c2642a1bda0fd8a263e82
@finscn finscn authored on 16 Jan 2017
Mat Groves committed on 16 Jan 2017
Showing 1 changed file
View
src/extras/AnimatedSprite.js