Roo/XComponent.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 06:19:08 +0000 (14:19 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 06:19:08 +0000 (14:19 +0800)
Roo/XComponent.js

index 96f08de..f35243d 100644 (file)
@@ -691,11 +691,15 @@ Roo.apply(Roo.XComponent, {
         if (typeof(component['_named_strings']) == undefined) {
             throw "ERROR: component does not have _named_strings";
         }
+        Roo.each(strings, function(k,v) {
+            var md = typeof(component['_named_strings'][k]) == 'undefined' ? false : component['_named_strings'][k];
+            if (md !== false) {
+                component['strings'][md] = v;
+            }
+            
+        });
         
-        
-        
-        
-    }
+    },
     
        
        /**