Changed calling order
This commit is contained in:
parent
7bb3b696f7
commit
e6f6f6b185
@ -288,10 +288,6 @@ export default class Button extends PIXI.Container {
|
|||||||
this.opts.beforeAction.call(this, e, this)
|
this.opts.beforeAction.call(this, e, this)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.opts.action) {
|
|
||||||
this.opts.action.call(this, e, this)
|
|
||||||
}
|
|
||||||
|
|
||||||
TweenLite.to([this.button, this.content], this.theme.fast, {
|
TweenLite.to([this.button, this.content], this.theme.fast, {
|
||||||
alpha: 0.83,
|
alpha: 0.83,
|
||||||
overwrite: 'none'
|
overwrite: 'none'
|
||||||
@ -301,6 +297,10 @@ export default class Button extends PIXI.Container {
|
|||||||
this.active = !this.active
|
this.active = !this.active
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.opts.action) {
|
||||||
|
this.opts.action.call(this, e, this)
|
||||||
|
}
|
||||||
|
|
||||||
if (this.opts.afterAction) {
|
if (this.opts.afterAction) {
|
||||||
this.opts.afterAction.call(this, e, this)
|
this.opts.afterAction.call(this, e, this)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user