Roo/XComponent.js
[roojs1] / Roo / XComponent.js
index aeb257b..7194a44 100644 (file)
@@ -688,6 +688,10 @@ Roo.apply(Roo.XComponent, {
      */
        overlayStrings : function( component, strings )
     {
+        if(typeof(component) == 'undefined') {
+            throw "ERROR: component undefined";
+        }
+        
         if (typeof(component['_named_strings']) == 'undefined') {
             throw "ERROR: component does not have _named_strings";
         }