From 7bff3080f66a869a4c3d56079e4c3244e99900e1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 Jun 2010 18:19:55 +0800 Subject: [PATCH] Roo.js --- Roo.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Roo.js b/Roo.js index 9fd258a583..b6b1406f5e 100644 --- a/Roo.js +++ b/Roo.js @@ -443,6 +443,14 @@ Roo.factory(conf, Roo.data); getCmp : function(id){ return Roo.ComponentMgr.get(id); }, + /** + * Shorthand for {@link Roo.XComponent#get} + * @param {String} id + * @return Roo.Component + */ + getx : function(id){ + return Roo.XComponent.get(id); + }, num : function(v, defaultValue){ if(typeof v != 'number'){ -- 2.39.2