@indra.ai/deva 1.2.36 → 1.2.38
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -193,13 +193,14 @@ class Deva {
|
|
|
193
193
|
***************/
|
|
194
194
|
Client(client) {
|
|
195
195
|
this.action('Client');
|
|
196
|
-
|
|
197
196
|
// setup any custom methods for the features
|
|
198
197
|
for (const x in client.features) {
|
|
199
198
|
const methods = client.features[x].methods || false;
|
|
200
199
|
if (methods) for (const y in methods) {
|
|
201
200
|
const isFunc = typeof methods[y] === 'function';
|
|
202
|
-
if (isFunc)
|
|
201
|
+
if (isFunc) {
|
|
202
|
+
this.methods[y] = methods[y].bind(this);
|
|
203
|
+
}
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
const _client = this.copy(client); // copy the client parameter
|