X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=6f7bb7bc13c1090e160351a31ec6c6dbad45f9ce;hp=da9ccc22291194d0206c7817ef7e2ce0e678bd75;hb=207dc6e065f17db9bdf887692ffa46c26c861b02;hpb=61bc45258e16a779856dd2ad0862630b489e4583 diff --git a/roojs-debug.js b/roojs-debug.js index da9ccc2229..6f7bb7bc13 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] = k; + add[this.displayField] = k + } + this.addItem(add); }, this); }