Skip to content

Commit

Permalink
Merge pull request #18 from KaMeHb-UA/fix-server-function-destroy-met…
Browse files Browse the repository at this point in the history
…hod-binding

fix server function destroy method binding
  • Loading branch information
KaMeHb-UA authored Nov 8, 2022
2 parents 0aa7720 + 8e730db commit 33d9184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Server {
return Object.defineProperties(wrapped, {
ref: { get: () => func.ref },
initialized: { get: () => func.initialized },
destroy: { get: () => func.destroy },
destroy: { get: () => func.destroy.bind(func) },
}) as any;
}

Expand Down

0 comments on commit 33d9184

Please sign in to comment.