2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00

remove getOptionValue()

This commit is contained in:
Jeff Sagal
2016-05-29 20:25:04 -07:00
parent 2888ab2b3f
commit 1607c6eddb
-15
View File
@@ -418,21 +418,6 @@
return this.value === option
},
/**
* If the selected option has option['value'] return it.
* Otherwise, return the entire option.
* @param {Object||String} option
* @return {Object||String}
* @deprecated will be removed in 1.0.8
*/
getOptionValue( option ) {
if( typeof option === 'object' && option.value ) {
return option.value;
}
return option;
},
/**
* Generate the option label text. If {option}
* is an object, return option[this.label].