From c6c7dfeefbb8b94f102aef6a04d828530e3ccb0f Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 16 May 2014 18:15:37 +0200 Subject: webui: fix excessive registration of state change event listeners `Facet` descendants don't have `container` attribute as opposite to `facet.facet`. Therefore the registration will happen on every facet visit. Reviewed-By: Endi Sukma Dewata --- install/ui/src/freeipa/Application_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/ui/src/freeipa/Application_controller.js') diff --git a/install/ui/src/freeipa/Application_controller.js b/install/ui/src/freeipa/Application_controller.js index 7296aa4ca..5a0b67b80 100644 --- a/install/ui/src/freeipa/Application_controller.js +++ b/install/ui/src/freeipa/Application_controller.js @@ -323,7 +323,7 @@ define([ if (menu_item) this.menu.select(menu_item); // show facet - if (!facet.container) { + if (!facet.container_node) { facet.container_node = container.widget.content_node; on(facet, 'facet-state-change', lang.hitch(this, this.on_facet_state_changed)); } -- cgit