summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/facet.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-11 17:02:48 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:24 +0200
commit3b77c63b2acfc36b4f8472018acc2d177c8fd0db (patch)
treeaa4fcbf07a8404e317e3d75b9974ab1fbcb5d372 /install/ui/src/freeipa/facet.js
parent0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2 (diff)
downloadfreeipa-3b77c63b2acfc36b4f8472018acc2d177c8fd0db.tar.gz
freeipa-3b77c63b2acfc36b4f8472018acc2d177c8fd0db.tar.xz
freeipa-3b77c63b2acfc36b4f8472018acc2d177c8fd0db.zip
Use IPA.object() as a base factory for framework objects
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r--install/ui/src/freeipa/facet.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js
index 958941291..3afe76e04 100644
--- a/install/ui/src/freeipa/facet.js
+++ b/install/ui/src/freeipa/facet.js
@@ -673,7 +673,7 @@ exp.facet_header = IPA.facet_header = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.facet = spec.facet;
@@ -1004,7 +1004,7 @@ exp.facet_title = IPA.facet_title = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.update = function(data) {
@@ -1432,7 +1432,7 @@ exp.facet_group = IPA.facet_group = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.name = spec.name;
that.label = text.get(spec.label);
@@ -1464,7 +1464,7 @@ exp.facet_group = IPA.facet_group = function(spec) {
exp.facet_builder = IPA.facet_builder = function(entity) {
- var that = {};
+ var that = IPA.object();
that.prepare_methods = {};
@@ -1623,7 +1623,7 @@ exp.action = IPA.action = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.name = spec.name;
that.label = text.get(spec.label);
@@ -1719,7 +1719,7 @@ exp.action_holder = IPA.action_holder = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.actions = $.ordered_map();
@@ -1776,7 +1776,7 @@ exp.state = IPA.state = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.state = $.ordered_map();
@@ -1845,7 +1845,7 @@ exp.summary_evaluator = IPA.summary_evaluator = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.evaluate = function(state) {
@@ -1880,7 +1880,7 @@ exp.state_evaluator = IPA.state_evaluator = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.name = spec.name || 'state_evaluator';
that.event_name = spec.event;