Fix instance test in init_selection

key could be empty but still the call must be for an instance.

issue3728
review4011002
This commit is contained in:
Cédric Krier committed 2014-03-08 13:25:13 +01:00
1 parent 71f012dc8f
commit 82c2aa2d45
1 file changed
+1 -1
+1 -1
View File
@@ -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];