From 5ffefafc000351a71b269ce2265f2faddb35b6e7 Mon Sep 17 00:00:00 2001 From: c0bra Date: Thu, 13 Nov 2014 15:45:17 -0600 Subject: [PATCH] fix(Selection): Change api for getSelectAllState() It was taking a grid argument despite not needing one, and the documentation was out of sync. Fixes #2086 --- src/features/selection/js/selection.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/features/selection/js/selection.js b/src/features/selection/js/selection.js index 432e5456b1..8b929b326f 100644 --- a/src/features/selection/js/selection.js +++ b/src/features/selection/js/selection.js @@ -240,9 +240,8 @@ * grid doesn't automatically select rows when you add extra data - so when you add data * you need to explicitly check whether the selectAll is set, and then call setVisible rows * if it is - * @param {bool} modifierKeysToMultiSelect true to only allow multiple rows when using ctrlKey or shiftKey is used */ - getSelectAllState: function (grid) { + getSelectAllState: function () { return grid.selection.selectAll; }