diff --git a/src/component/index.js b/src/component/index.js index bdb3355..c8d514d 100644 --- a/src/component/index.js +++ b/src/component/index.js @@ -34,12 +34,16 @@ export class TurtleComponentInstance { this.onDestroy = new Function() } + get refs() { + return this._refs + } + initState(value) { let state = createState(value) state.component = this return state } - + addUpdateDependents(dependents) { dependents.forEach(dependent => { dependent.component = this