summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/facet.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r--install/ui/src/freeipa/facet.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js
index e1f68dbfc..ac062f9f1 100644
--- a/install/ui/src/freeipa/facet.js
+++ b/install/ui/src/freeipa/facet.js
@@ -24,7 +24,6 @@
define([
'dojo/_base/declare',
'dojo/_base/lang',
- 'dojo/topic',
'dojo/dom-construct',
'dojo/on',
'dojo/Stateful',
@@ -35,7 +34,7 @@ define([
'./dialog',
'./field',
'./widget'
- ], function(declare, lang, topic, construct, on, Stateful, Evented,
+ ], function(declare, lang, construct, on, Stateful, Evented,
IPA, $, navigation) {
/**
@@ -101,7 +100,7 @@ IPA.facet = function(spec, no_init) {
spec.state = spec.state || {};
$.extend(spec.state, { factory: IPA.state });
- var that = {};
+ var that = new Evented();
that.entity = IPA.get_entity(spec.entity);
@@ -321,7 +320,7 @@ IPA.facet = function(spec, no_init) {
};
that._notify_state_change = function(state) {
- topic.publish('facet-state-change', {
+ that.emit('facet-state-change', {
facet: that,
state: state
});