Roo/XComponent.js
[roojs1] / roojs-core-debug.js
index 85f064d..eefc151 100644 (file)
@@ -16634,6 +16634,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";
         }