Roo/XComponent.js
authorjohn <john@roojs.com>
Thu, 24 May 2018 09:18:27 +0000 (17:18 +0800)
committerjohn <john@roojs.com>
Thu, 24 May 2018 09:18:27 +0000 (17:18 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/XComponent.js

index 9283197..7194a44 100644 (file)
@@ -688,7 +688,11 @@ Roo.apply(Roo.XComponent, {
      */
        overlayStrings : function( component, strings )
     {
-        if (typeof(component['_named_strings']) == undefined) {
+        if(typeof(component) == 'undefined') {
+            throw "ERROR: component undefined";
+        }
+        
+        if (typeof(component['_named_strings']) == 'undefined') {
             throw "ERROR: component does not have _named_strings";
         }
         for ( var k in strings ) {