@nxtedition/lib 14.0.1 → 14.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util/template/javascript.js +11 -9
package/package.json
CHANGED
|
@@ -162,15 +162,16 @@ module.exports = ({ ds, ...options }) => {
|
|
|
162
162
|
this._subscription = null
|
|
163
163
|
this._args = null
|
|
164
164
|
this._ready = false
|
|
165
|
-
this._handler =
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
this._handler = options.proxyify
|
|
166
|
+
? {
|
|
167
|
+
get: (target, prop) => proxyify(target[prop], this),
|
|
168
|
+
}
|
|
169
|
+
: null
|
|
169
170
|
|
|
170
171
|
if (rxjs.isObservable(args)) {
|
|
171
172
|
this._subscription = args.subscribe({
|
|
172
173
|
next: (args) => {
|
|
173
|
-
this._args = this.
|
|
174
|
+
this._args = this._handler ? proxyify(args, this) : args
|
|
174
175
|
this._ready = true
|
|
175
176
|
this._refresh()
|
|
176
177
|
},
|
|
@@ -183,7 +184,7 @@ module.exports = ({ ds, ...options }) => {
|
|
|
183
184
|
},
|
|
184
185
|
})
|
|
185
186
|
} else {
|
|
186
|
-
this._args = this.
|
|
187
|
+
this._args = this._handler ? proxyify(args, this) : args
|
|
187
188
|
this._ready = true
|
|
188
189
|
}
|
|
189
190
|
|
|
@@ -299,9 +300,10 @@ module.exports = ({ ds, ...options }) => {
|
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
// TODO (perf): Make this work.
|
|
304
|
+
// if (!self._entries) {
|
|
305
|
+
// self._args = null
|
|
306
|
+
// }
|
|
305
307
|
|
|
306
308
|
self._disposing = false
|
|
307
309
|
}
|