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/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/ui/src/freeipa/dialog.js') diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js index 2243c5ac..36a143d2 100644 --- a/install/ui/src/freeipa/dialog.js +++ b/install/ui/src/freeipa/dialog.js @@ -54,7 +54,7 @@ IPA.dialog_button = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.object(); that.name = spec.name; that.label = text.get(spec.label || spec.name); @@ -86,7 +86,7 @@ IPA.dialog = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.object(); that.entity = IPA.get_entity(spec.entity); that.name = spec.name || 'dialog'; -- cgit