summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/facet.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-05-14 17:36:28 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-17 12:32:06 +0200
commit6e90920233cc9a7c9feb040dea22cda837715c39 (patch)
tree2537b852644502a58c6afa83bf12cf1c0a267825 /install/ui/src/freeipa/facet.js
parent8d07054e1b2ff8680c225e7cd847eb885e7246a4 (diff)
downloadfreeipa.git-6e90920233cc9a7c9feb040dea22cda837715c39.tar.gz
freeipa.git-6e90920233cc9a7c9feb040dea22cda837715c39.tar.xz
freeipa.git-6e90920233cc9a7c9feb040dea22cda837715c39.zip
Move spec modifications from facet factories to pre_ops
Spec modifications in factories makes inheritance and extensibility more difficult. Moving them to pre_ops allows modification of their output by other pre_ops. https://fedorahosted.org/freeipa/ticket/3605
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r--install/ui/src/freeipa/facet.js47
1 files changed, 1 insertions, 46 deletions
diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js
index f9510e77..46aea0cc 100644
--- a/install/ui/src/freeipa/facet.js
+++ b/install/ui/src/freeipa/facet.js
@@ -1579,50 +1579,6 @@ exp.facet_preops = {
}
};
-exp.register_facets = function() {
-
- var f = reg.facet;
- f.register({
- type: 'search',
- factory: IPA.search_facet,
- pre_ops: [
- exp.facet_preops.search
- ]
- });
-
- f.register({
- type: 'nested_search',
- factory: IPA.nested_search_facet,
- pre_ops: [
- exp.facet_preops.nested_search
- ]
- });
-
- f.register({
- type: 'details',
- factory: IPA.details_facet,
- pre_ops: [
- exp.facet_preops.details
- ]
- });
-
- f.register({
- type: 'association',
- factory: IPA.association_facet,
- pre_ops: [
- exp.facet_preops.association
- ]
- });
-
- f.register({
- type: 'attribute',
- factory: IPA.attribute_facet,
- pre_ops: [
- exp.facet_preops.attribute
- ]
- });
-};
-
exp.action = IPA.action = function(spec) {
spec = spec || {};
@@ -2406,7 +2362,7 @@ var FacetState = exp.FacetState = declare([Stateful, Evented], {
},
/**
- * Set completly new state. Old state is cleared.
+ * Set completely new state. Old state is cleared.
*
* Raises 'reset' event.
*/
@@ -2446,7 +2402,6 @@ exp.register = function() {
};
phases.on('registration', exp.register);
-phases.on('registration', exp.register_facets);
return exp;
});