@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.
- package/dist/UtilFunctions.js +2 -1
- package/package.json +1 -1
- package/src/UtilFunctions.ts +2 -1
package/dist/UtilFunctions.js
CHANGED
|
@@ -217,7 +217,8 @@ var UtilFunc;
|
|
|
217
217
|
});
|
|
218
218
|
*/
|
|
219
219
|
if (typeof mixin[fd] === 'function') {
|
|
220
|
-
compObj[fd] = mixin[fd].
|
|
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
package/src/UtilFunctions.ts
CHANGED
|
@@ -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).
|
|
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],
|