@tarojs/runtime 3.6.20 → 3.6.21
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/runtime.esm.d.ts +1 -1
- package/dist/runtime.esm.js +4 -1
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ declare const nav: any;
|
|
|
431
431
|
declare let now: () => number;
|
|
432
432
|
// https://gist.github.com/paulirish/1579671
|
|
433
433
|
// https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
|
|
434
|
-
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.
|
|
434
|
+
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timer);
|
|
435
435
|
declare const _caf: typeof cancelAnimationFrame;
|
|
436
436
|
declare class URLSearchParams {
|
|
437
437
|
#private;
|
package/dist/runtime.esm.js
CHANGED
|
@@ -1469,7 +1469,10 @@ class TaroElement extends TaroNode {
|
|
|
1469
1469
|
event.defaultPrevented = true;
|
|
1470
1470
|
}
|
|
1471
1471
|
if (!isUndefined(result) && event.mpEvent) {
|
|
1472
|
-
|
|
1472
|
+
const res = hooks.call('modifyTaroEventReturn', this, event, result);
|
|
1473
|
+
if (res) {
|
|
1474
|
+
event.mpEvent[EVENT_CALLBACK_RESULT] = result;
|
|
1475
|
+
}
|
|
1473
1476
|
}
|
|
1474
1477
|
if (event._end && event._stop) {
|
|
1475
1478
|
break;
|