UNPKG

363 BJavaScriptView Raw
1/**
2 * @ignore
3 * get view event name, with name:event
4 * @param type original event type
5 * @param name event trigger shape name
6 * @returns the name:event string
7 */
8export function getEventName(type, name) {
9 if (type.includes(':')) {
10 return type;
11 }
12 return name ? "".concat(name, ":").concat(type) : type;
13}
14//# sourceMappingURL=event.js.map
\No newline at end of file