@zwa73/utils 1.0.65 → 1.0.66

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.
@@ -217,7 +217,8 @@ var UtilFunc;
217
217
  });
218
218
  */
219
219
  if (typeof mixin[fd] === 'function') {
220
- compObj[fd] = mixin[fd].bind(mixin);
220
+ compObj[fd] = (...args) => mixin[fd].apply(mixin, args);
221
+ //(compObj as any)[fd] = (mixin[fd] as any).bind(mixin);
221
222
  }
222
223
  else {
223
224
  Object.defineProperty(compObj, fd, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -235,7 +235,8 @@ export function composeClassPart
235
235
  });
236
236
  */
237
237
  if(typeof mixin[fd] === 'function') {
238
- (compObj as any)[fd] = (mixin[fd] as any).bind(mixin);
238
+ (compObj as any)[fd] = (...args: any[]) => (mixin[fd] as any).apply(mixin, args);
239
+ //(compObj as any)[fd] = (mixin[fd] as any).bind(mixin);
239
240
  } else {
240
241
  Object.defineProperty(compObj, fd, {
241
242
  get: ()=>mixin[fd],