js: Add _ref property in view,store ref, for combine action in mobx
This commit is contained in:
@@ -373,8 +373,11 @@ export abstract class View implements Modeling {
|
||||
this.in(v)
|
||||
}
|
||||
|
||||
private _ref?: Ref<this>;
|
||||
|
||||
set ref(ref: Ref<this>) {
|
||||
ref.current = this
|
||||
this._ref = ref;
|
||||
}
|
||||
|
||||
doAnimation(context: BridgeContext, animation: IAnimation) {
|
||||
|
@@ -382,8 +382,11 @@ export abstract class View implements Modeling {
|
||||
this.in(v)
|
||||
}
|
||||
|
||||
private _ref?: Ref<this>;
|
||||
|
||||
set ref(ref: Ref<this>) {
|
||||
ref.current = this
|
||||
this._ref = ref;
|
||||
}
|
||||
|
||||
doAnimation(context: BridgeContext, animation: IAnimation) {
|
||||
|
Reference in New Issue
Block a user