Select: remove onOptionDestroy event

pull/6643/head
Leopoldthecoder 2017-08-18 15:32:29 +08:00 committed by 杨奕
parent 2250162553
commit 8e8b172bdc
2 changed files with 1 additions and 2 deletions

View File

@ -149,7 +149,7 @@
},
beforeDestroy() {
this.dispatch('ElSelect', 'onOptionDestroy', this.select.options.indexOf(this));
this.select.onOptionDestroy(this.select.options.indexOf(this));
}
};
</script>

View File

@ -684,7 +684,6 @@
});
this.$on('handleOptionClick', this.handleOptionSelect);
this.$on('onOptionDestroy', this.onOptionDestroy);
this.$on('setSelected', this.setSelected);
},