Roo/bootstrap/PhoneInput.js
authorjohn <john@roojs.com>
Thu, 29 Mar 2018 02:46:40 +0000 (10:46 +0800)
committerjohn <john@roojs.com>
Thu, 29 Mar 2018 02:46:40 +0000 (10:46 +0800)
Roo/bootstrap/PhoneInput.js

index bf9ccad..039e7ff 100644 (file)
@@ -53,6 +53,9 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             var align = this.labelAlign || this.parentLabelAlign();
             var id = Roo.id();
             
+            this.allCountries = [];
+            this.dialCodeMapping = [];
+            
             for (var i = 0; i < data.length; i++) {
               var c = data[i];
               this.allCountries[i] = {