[bugfix] Popup should remove event handler when destroyed (#477)

This commit is contained in:
neverland
2017-12-25 14:28:10 +08:00
committed by GitHub
parent 719d1f9b0a
commit 2d2a368e2c
6 changed files with 52 additions and 58 deletions
+15
View File
@@ -0,0 +1,15 @@
const PopupContext = {
idSeed: 1,
zIndex: 2000,
stack: [],
plusKey(key) {
return this[key]++;
},
get top() {
return this.stack[this.stack.length - 1];
}
};
export default PopupContext;