sync
[roojs1] / Roo / bootstrap / PhoneInput.js
index 9582d30..fa1cc39 100644 (file)
@@ -173,11 +173,6 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField,  {
                 }
             });
             
-            return cfg;
-        },
-        
-        initEvents : function()
-        {
             this.store = new Roo.data.Store({
                 proxy : new Roo.data.MemoryProxy({}),
                 reader : new Roo.data.JsonReader({
@@ -211,6 +206,11 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField,  {
                 data: this.allCountries
             };
             
+            return cfg;
+        },
+        
+        initEvents : function()
+        {
             this.createList();
             Roo.bootstrap.PhoneInput.superclass.initEvents.call(this);