From 3b77c63b2acfc36b4f8472018acc2d177c8fd0db Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 11 Apr 2013 17:02:48 +0200 Subject: Use IPA.object() as a base factory for framework objects https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/ipa.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'install/ui/src/freeipa/ipa.js') diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js index c8bf4dae..a92b23ac 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 = []; -- cgit