Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
ruojianll committed Nov 2, 2023
1 parent 6939031 commit 52dc2f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ export function makeSlot(obj: any, defaultSlot?: Slot): Slot {
defaultSlot.master = obj
}
const slot = defaultSlot ?? new Slot(obj)

Object.defineProperty(obj, SlotSymbol, {
enumerable: false,
value: slot
})
metadata.create(obj,slot)
return slot
}

Expand Down

0 comments on commit 52dc2f4

Please sign in to comment.