* @return {String} The HTML fragment
*/
applyTemplate : function(values){
- Roo.log(["applyTemplate", values]);
+ //Roo.log(["applyTemplate", values]);
try {
if(this.compiled){
var ls = this.listeners, scope, len = ls.length;
if(len > 0){
this.firing = true;
-
+ var args = Array.prototype.slice.call(arguments, 0);
for(var i = 0; i < len; i++){
- var args = Array.prototype.slice.call(arguments, 0);
var l = ls[i];
- args.push(l.options);
if(l.fireFn.apply(l.scope||this.obj||window, args) === false){
this.firing = false;
return false;
* @return {Object} The item associated with the passed key.
*/
item : function(key){
+ if (key === 'length') {
+ return null;
+ }
var item = typeof this.map[key] != "undefined" ? this.map[key] : this.items[key];
return typeof item != 'function' || this.allowFunctions ? item : null; // for prototype!
},
/**
* @cfg {String} actionMode
* which property holds the element that used for hide() / show() / disable() / enable()
- * default is 'el'
+ * default is 'el' for forms you probably want to set this to fieldEl
*/
actionMode : "el",