UNPKG

@progress/kendo-vue-common

Version:

Kendo UI for Vue Common Utilities package

27 lines (26 loc) 944 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ function i(s) { const t = Object.keys(this.$attrs).map((e) => e.toLowerCase()).some((e) => e.endsWith(s.toLowerCase())), n = Object.entries(this.$props).some(([e, r]) => { const o = e.toLowerCase(); return r !== void 0 && o.startsWith("on") && o.endsWith(s.toLowerCase()); }); return t || n; } function h() { const s = {}; for (const t in this.$attrs) t.startsWith("on") && (s[t] = this.$attrs[t]); for (const t in this.$props) t.startsWith("on") && (s[t] = this.$props[t]); return s; } export { h as getListeners, i as hasListener };