|
|
|
@ -41,7 +41,10 @@ Scene({ |
|
|
|
}, |
|
|
|
onEvent: function(message){ |
|
|
|
if (message.what == 120) { |
|
|
|
this.fetchMemberList() |
|
|
|
var that = this |
|
|
|
this.timeout = setTimeout(() => { |
|
|
|
that.fetchMemberList() |
|
|
|
}, 1000) |
|
|
|
} |
|
|
|
}, |
|
|
|
fetchMemberList: function(){ |
|
|
|
@ -106,6 +109,10 @@ Scene({ |
|
|
|
} |
|
|
|
}, |
|
|
|
onUnload: function(){ |
|
|
|
if(this.timeout){ |
|
|
|
clearTimeout(this.timeout) |
|
|
|
this.timeout = null |
|
|
|
} |
|
|
|
event.remove('EventMessage', this) |
|
|
|
} |
|
|
|
}) |