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/field.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'install/ui/src/freeipa/field.js') diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js index 0ba823d1..fe14204c 100644 --- a/install/ui/src/freeipa/field.js +++ b/install/ui/src/freeipa/field.js @@ -28,7 +28,7 @@ define(['dojo/_base/array', './ipa', './jquery', './navigation', './text'], IPA.field = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.object(); that.entity = IPA.get_entity(spec.entity); that.facet = spec.facet; @@ -416,7 +416,7 @@ IPA.validator = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.object(); that.message = text.get(spec.message || '@i18n:widget.validation.error'); @@ -830,7 +830,7 @@ IPA.field_container = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.object(); that.container = spec.container; //usually facet or dialog @@ -866,7 +866,7 @@ IPA.field_builder = function(spec) { spec = spec || {}; - var that = {}; + var that = IPA.object(); that.default_factory = spec.default_factory || IPA.field; that.container = spec.container; -- cgit