@easyv/charts 1.4.30 → 1.4.31

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.
@@ -26,7 +26,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
26
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
 
28
28
  var getCallbackData = function getCallbackData(action, callbacks, data) {
29
- var callbackData;
29
+ var callbackData = {};
30
30
 
31
31
  if (callbacks && Array.isArray(callbacks) && callbacks.length && data) {
32
32
  callbacks.forEach(function (_ref) {
@@ -35,7 +35,6 @@ var getCallbackData = function getCallbackData(action, callbacks, data) {
35
35
  _action = _ref.actions;
36
36
 
37
37
  if (action === _action) {
38
- callbackData = {};
39
38
  callbackData[target] = data[origin];
40
39
  }
41
40
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.4.30",
3
+ "version": "1.4.31",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -6,11 +6,10 @@ import { chartContext } from '../context';
6
6
  import { PieChart, CartesianChart } from '.';
7
7
 
8
8
  const getCallbackData = (action,callbacks, data) => {
9
- let callbackData;
9
+ const callbackData={};
10
10
  if (callbacks && Array.isArray(callbacks) && callbacks.length && data) {
11
11
  callbacks.forEach(({ origin, target, actions:_action }) => {
12
12
  if(action === _action){
13
- callbackData = {};
14
13
  callbackData[target] = data[origin];
15
14
  }
16
15
  });