MCPcopy
hub / github.com/nodeWechat/wechat4u / MessageFactory

Function MessageFactory

src/interface/message.js:65–72  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

63}
64
65export default function MessageFactory (instance) {
66 return {
67 extend: function (messageObj) {
68 messageObj = Object.setPrototypeOf(messageObj, messageProto)
69 return messageObj.init(instance)
70 }
71 }
72}

Callers 2

unit.jsFile · 0.85
constructorMethod · 0.85

Calls 1

initMethod · 0.80

Tested by

no test coverage detected