[Improvement] optimize isDef (#1109)

This commit is contained in:
neverland
2018-05-19 18:43:44 +08:00
committed by GitHub
parent 249e2400a3
commit d15efd756e
9 changed files with 5 additions and 28 deletions

View File

@@ -18,7 +18,6 @@
<script>
import create from '../utils/create';
import { isDef } from '../utils';
import findParent from '../mixins/find-parent';
export default create({
@@ -79,7 +78,7 @@ export default create({
const { currentValue } = this;
if ({}.toString.call(currentValue) === '[object Boolean]') {
return currentValue;
} else if (isDef(currentValue)) {
} else if (this.isDef(currentValue)) {
return currentValue === this.name;
}
},