From 33add3b9c408f85845b4ec1bb29e359a1fd25251 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 28 Jul 2010 12:54:56 +0800 Subject: [PATCH] Roo/Template.js --- Roo/Template.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Roo/Template.js b/Roo/Template.js index 3b9d6a38cb..7084170e83 100644 --- a/Roo/Template.js +++ b/Roo/Template.js @@ -29,16 +29,18 @@ t.append('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'} * @param {String/Array} html */ Roo.Template = function(cfg){ + // BC! if(cfg instanceof Array){ cfg = cfg.join(""); }else if(arguments.length > 1){ cfg = Array.prototype.join.call(arguments, ""); } - /**@private*/ + if (typeof(cfg) == 'object') { Roo.apply(this,cfg) } else { + // bc this.html = cfg; } -- 2.39.2