X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=5602bf3ed2b5bf7cb8d1586cc7f38847e33969f3;hp=da9ccc22291194d0206c7817ef7e2ce0e678bd75;hb=07830f57369f060d2684d2efc7e7bea00fe9e0e4;hpb=dc5d9380aff25134bf025953bdafe40b580337ff diff --git a/roojs-debug.js b/roojs-debug.js index da9ccc2229..5602bf3ed2 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -4667,7 +4667,7 @@ Roo.Template.prototype = { * @return {String} The HTML fragment */ applyTemplate : function(values){ - Roo.log(["applyTemplate", values]); + //Roo.log(["applyTemplate", values]); try { if(this.compiled){ @@ -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); }