refactor code

This commit is contained in:
MaysWind 2016-06-25 19:53:09 +08:00
parent 8abdc4c75e
commit d04d321de9

View file

@ -97,7 +97,11 @@
}, },
selectAll: function () { selectAll: function () {
if (!this.list || !this.selected || this.list.length < 1) { if (!this.list || !this.selected || this.list.length < 1) {
return result; return;
}
if (!this.enableSelectAll) {
return;
} }
var isAllSelected = true; var isAllSelected = true;