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

Function makeReusable

apps/ui/src/issues/issue-7469-page.ts:77–88  ·  view source on GitHub ↗
(args: EventData)

Source from the content-addressed store, hash-verified

75}
76
77export function makeReusable(args: EventData) {
78 console.log('loaded:', args.object);
79 // console.log("making reusable");
80 if ((args.object as any).___reusableRan) {
81 return;
82 }
83 (args.object as any).___reusableRan = true;
84 (args.object as any).reusable = true;
85 if (args.object === reusableItem) {
86 updateVcToggleText();
87 }
88}
89
90export function onReusableUnloaded(args: EventData) {
91 console.log('unloaded:', args.object);

Callers

nothing calls this directly

Calls 2

updateVcToggleTextFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected