UNPKG

485 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.getEventName = void 0;
4/**
5 * @ignore
6 * get view event name, with name:event
7 * @param type original event type
8 * @param name event trigger shape name
9 * @returns the name:event string
10 */
11function getEventName(type, name) {
12 if (type.includes(':')) {
13 return type;
14 }
15 return name ? name + ":" + type : type;
16}
17exports.getEventName = getEventName;
18//# sourceMappingURL=event.js.map
\No newline at end of file