UNPKG

@ray-core/runtime

Version:

Ray 是一个全新的基于 React 的小程序开发框架

12 lines (11 loc) 556 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPropagationStopped = void 0; var gStore_1 = require("../gStore"); // Ray构建的原生组件自成闭包环境,所以和项目构建会产生多少个上下文 // 因此该变量需要设置在全局作用域下 exports.isPropagationStopped = (0, gStore_1.initGlobalStore)('event_propagation_stopped', function () { return ({}); }); function stopPropagation(node, eventType) { exports.isPropagationStopped[eventType] = true; } exports.default = stopPropagation;