MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getEventOrGestureName

Function getEventOrGestureName

packages/core/ui/core/bindable/index.ts:62–64  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

60 * handle the output properly.
61 */
62export function getEventOrGestureName(name: string): string {
63 return name.indexOf('on') === 0 ? name.slice(2) : name;
64}
65
66export function isGesture(eventOrGestureName: string): boolean {
67 // Not sure whether this trimming and lowercasing is still needed in practice

Callers 3

addEventListenerFunction · 0.90
removeEventListenerFunction · 0.90
isEventOrGestureFunction · 0.85

Calls 2

indexOfMethod · 0.80
sliceMethod · 0.45

Tested by

no test coverage detected