Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Mark the component as ready in the registry when updateComponent() is called from init()

Stephen Kreisler1ca118db1e1a
diff --git a/js/menuPicker.js b/js/menuPicker.js
index 5a8a87a2d..aeb345a48 100644
--- a/js/menuPicker.js
+++ b/js/menuPicker.js
@@ -38,6 +38,7 @@ SOTE.widget.MenuPicker = function(containerId, config){
this.selectedValue = null;
this.menuIsCollapsible = config.isCollapsible;
this.dataSourceUrl = config.dataSourceUrl;
+ this.initRenderComplete = false;
this.statusStr = "";
this.init();
};
@@ -95,6 +96,11 @@ SOTE.widget.MenuPicker.prototype.render = function(){
else
menuLI.setAttribute('class', "disabled");
}
+ // Mark the component as ready in the registry if called via init()
+ if ((this.initRenderComplete === false) && REGISTRY) {
+ this.initRenderComplete = true;
+ REGISTRY.markComponentReady(this.id);
+ }
this.container.appendChild(menuUL);
};