From d04d321de982d49e10e1d88656040f4c3ecd784a Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 25 Jun 2016 19:53:09 +0800 Subject: [PATCH] refactor code --- src/scripts/core/root.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scripts/core/root.js b/src/scripts/core/root.js index 7fc7c47..de6d312 100644 --- a/src/scripts/core/root.js +++ b/src/scripts/core/root.js @@ -97,7 +97,11 @@ }, selectAll: function () { if (!this.list || !this.selected || this.list.length < 1) { - return result; + return; + } + + if (!this.enableSelectAll) { + return; } var isAllSelected = true;