summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/widget.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/widget.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/widget.js')
-rw-r--r--install/ui/src/freeipa/widget.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index fc01bc082..6e934fa2b 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -33,7 +33,7 @@ IPA.widget = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.name = spec.name;
that.id = spec.id;
@@ -1247,7 +1247,7 @@ IPA.formatter = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.type = spec.type; // default is text
@@ -1373,7 +1373,7 @@ IPA.column = function (spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.entity = IPA.get_entity(spec.entity);
that.name = spec.name;
@@ -3399,7 +3399,7 @@ IPA.header_widget = function(spec) {
IPA.observer = function(spec) {
- var that = {};
+ var that = IPA.object();
that.listeners = [];
@@ -3430,7 +3430,7 @@ IPA.observer = function(spec) {
IPA.html_util = function() {
- var that = {};
+ var that = IPA.object();
that.id_count = 0;
that.get_next_id = function(prefix) {
@@ -3445,7 +3445,7 @@ IPA.widget_container = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.new_container_for_child = spec.new_container_for_child !== undefined ?
spec.new_container_for_child : true;
@@ -3523,7 +3523,7 @@ IPA.widget_builder = function(spec) {
spec = spec || {};
- var that = {};
+ var that = IPA.object();
that.default_factory = spec.default_factory || IPA.text_widget;
that.container = spec.container;