File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ export default class ModelManager {
3333 this . hideViews = simputModel . hideViews || [ ] ;
3434 // used in hooks
3535 this . fullData = simputModel ;
36- // convenient access to fullData.data
37- this . data = simputModel . data || { } ;
38- this . external = simputModel . external || { } ;
39- this . data = simputModel . data ;
40- this . external = simputModel . external ;
4136 this . type = simputModel . type ;
4237
4338 this . localizedData = new LocalizedData ( module ) ;
@@ -54,6 +49,22 @@ export default class ModelManager {
5449 this . listeners = [ ] ;
5550 }
5651
52+ get data ( ) {
53+ return this . fullData . data ;
54+ }
55+
56+ set data ( value ) {
57+ this . fullData . data = value ;
58+ }
59+
60+ get external ( ) {
61+ return this . fullData . external ;
62+ }
63+
64+ set external ( value ) {
65+ this . fullData . external = value ;
66+ }
67+
5768 // -------- Public methods ------------
5869
5970 subscribe ( callback ) {
You can’t perform that action at this time.
0 commit comments