summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/ipa.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/ipa.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/ipa.js')
-rw-r--r--install/ui/src/freeipa/ipa.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js
index c8bf4daee..a92b23ac8 100644
--- a/install/ui/src/freeipa/ipa.js
+++ b/install/ui/src/freeipa/ipa.js
@@ -591,7 +591,7 @@ IPA.command = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.name = spec.name;
@@ -1029,7 +1029,7 @@ IPA.batch_command = function (spec) {
IPA.concurrent_command = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.commands = [];
that.on_success = spec.on_success;
@@ -1177,7 +1177,7 @@ IPA.default_factory = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
$.extend(that, spec);
@@ -1443,7 +1443,7 @@ IPA.error_dialog = function(spec) {
};
IPA.error_list = function() {
- var that = {};
+ var that = IPA.object();
that.clear = function() {
that.errors = [];