MCPcopy
hub / github.com/dollarshaveclub/postmate / destroy

Method destroy

src/postmate.js:169–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 }
168
169 destroy () {
170 if (process.env.NODE_ENV !== 'production') {
171 log('Parent: Destroying Postmate instance')
172 }
173 window.removeEventListener('message', this.listener, false)
174 this.frame.parentNode.removeChild(this.frame)
175 }
176}
177
178/**

Callers 1

test.jsFile · 0.80

Calls 1

logFunction · 0.85

Tested by

no test coverage detected