@indra.ai/deva 1.64.45 → 1.64.46

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -146,9 +146,12 @@ class Deva {
146
146
  try {
147
147
  this._bind.forEach(bind => { // loop over the bind items func, method, listener...
148
148
  if (this[bind]) for (let x in this[bind]) { // if the root has a bind func, method, listener
149
- if (typeof this[bind][x] === 'function') { // check to make sure object is a fucntion
149
+ // check to make sure the binding is a function.
150
+ if (typeof this[bind][x] === 'function') {
151
+ // check to make sure object is a fucntion
150
152
  if (!this._binding.has(bind)) this._binding.set(bind, {});
151
- this[bind][x] = this[bind][x].bind(this); // bind the item from the bind object
153
+ this._binding.get(bind)[x] = this[bind][x].toString();
154
+ this[bind][x] = this[bind][x].bind(this);
152
155
  }
153
156
  }
154
157
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "31711622713594414221",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.64.45",
4
+ "version": "1.64.46",
5
5
  "description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
6
6
  "main": "index.js",
7
7
  "license": "VLA:31711622713594414221 LICENSE.md",