Explorar el Código

Select: remove onOptionDestroy event

Leopoldthecoder hace 8 años
padre
commit
8e8b172bdc
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 1 1
      packages/select/src/option.vue
  2. 0 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/option.vue

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

+ 0 - 1
packages/select/src/select.vue

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