diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-03-28 16:39:15 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:20 +0200 |
commit | cc92060e35e04c78443aeba4901b90843f5d831e (patch) | |
tree | 00cc493dee17125a4416e5408f26d6730aeff8bd /install/ui/src/freeipa/facet.js | |
parent | c0007704e8e8bea785dde410647c79501527eb72 (diff) | |
download | freeipa-cc92060e35e04c78443aeba4901b90843f5d831e.tar.gz freeipa-cc92060e35e04c78443aeba4901b90843f5d831e.tar.xz freeipa-cc92060e35e04c78443aeba4901b90843f5d831e.zip |
Use dojo/on instead of dojo/topic for facet-xxx events'
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r-- | install/ui/src/freeipa/facet.js | 7 |
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 }); |