X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=adcff90e77859af4ce9e031bfc2fc7b3509fe970;hp=da9ccc22291194d0206c7817ef7e2ce0e678bd75;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hpb=dc5d9380aff25134bf025953bdafe40b580337ff diff --git a/roojs-debug.js b/roojs-debug.js index da9ccc2229..adcff90e77 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -42545,7 +42545,13 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField, if (typeof(v) == 'object' ) { // then let's assume it's an array of objects.. Roo.each(v, function(l) { - this.addItem(l); + var add = l; + if (typeof(l) == 'string') { + add = {}; + add[this.valueField] = l; + add[this.displayField] = l + } + this.addItem(add); }, this); }