diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-11 17:02:48 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:24 +0200 |
commit | 3b77c63b2acfc36b4f8472018acc2d177c8fd0db (patch) | |
tree | aa4fcbf07a8404e317e3d75b9974ab1fbcb5d372 /install/ui/src/freeipa/field.js | |
parent | 0dc4b133fb0795b9c55f8a9fc95b55bc4df7ebf2 (diff) | |
download | freeipa-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/field.js')
-rw-r--r-- | install/ui/src/freeipa/field.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js index 0ba823d12..fe14204c0 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; |