From 82c2aa2d459fb2b69a28e8e897166d9e5e14cb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 8 Mar 2014 13:25:13 +0100 Subject: [PATCH] Fix instance test in init_selection key could be empty but still the call must be for an instance. issue3728 review4011002 --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index fcf0fa679d..e5dcd36a9a 100644 --- a/src/common.js +++ b/src/common.js @@ -256,7 +256,7 @@ if (!(selection instanceof Array) && !(key in this._values2selection)) { var prm; - if (key) { + if (this.attributes.selection_change_with) { var params = {}; key.forEach(function(e) { params[e[0]] = e[1];