Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onUnload() {
this.window.$$trigger('beforeunload')
this.app && this.app.$destroy && this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {
onUnload() {
this.window.$$trigger('beforeunload')
this.window.$$trigger('wxunload')
if (this.app && this.app.$destroy) this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window.getTabBar = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {
onUnload() {
this.window.$$trigger('beforeunload')
this.window.$$trigger('wxunload')
if (this.app && this.app.$destroy) this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {
onUnload() {
this.window.$$trigger('beforeunload')
this.window.$$trigger('wxunload')
if (this.app && this.app.$destroy) this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {
onUnload() {
this.window.$$trigger('beforeunload')
this.app && this.app.$destroy && this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {
onUnload() {
this.window.$$trigger('beforeunload')
this.window.$$trigger('wxunload')
if (this.app && this.app.$destroy) this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window.getTabBar = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {
onUnload() {
this.window.$$trigger('beforeunload')
this.window.$$trigger('wxunload')
if (this.app && this.app.$destroy) this.app.$destroy()
this.document.body.$$recycle() // 回收 dom 节点
mp.destroyPage(this.pageId)
global.$$runtime = null
this.pageConfig = null
this.pageId = null
this.window.getTabBar = null
this.window = null
this.document = null
this.app = null
this.query = null
},
onShareAppMessage(data) {