summaryrefslogtreecommitdiffstats
path: root/install/ui/ipa.js
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-02-16 14:26:35 +0100
committerAdam Young <ayoung@redhat.com>2011-02-18 09:49:37 -0500
commitb7700ea815222b4de80741ad77b31707051300bd (patch)
tree4c92ba518468af34f9587131c8f4de3bb13613e3 /install/ui/ipa.js
parent27532f54687297e5dfa7d66503f22186d7fc3237 (diff)
downloadfreeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.gz
freeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.xz
freeipa-b7700ea815222b4de80741ad77b31707051300bd.zip
Remove WebUI identifiers from global namespace
Many WebUI identifiers were defined in a global namespace. This is not a good programming practice and may result in name clashes, for example with other libraries. This patch moves these variables to IPA namespace or its sub-namespaces, when meaningful. https://fedorahosted.org/freeipa/ticket/212
Diffstat (limited to 'install/ui/ipa.js')
-rw-r--r--install/ui/ipa.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/install/ui/ipa.js b/install/ui/ipa.js
index 64ee04b54..17b4b0695 100644
--- a/install/ui/ipa.js
+++ b/install/ui/ipa.js
@@ -47,7 +47,6 @@ var IPA = ( function () {
that.metadata = {};
that.whoami = {};
-
that.entities = [];
that.entity_factories = {};
@@ -332,8 +331,7 @@ IPA.batch_command = function (spec) {
* win_callback - function to call if the JSON request succeeds
* fail_callback - function to call if the JSON request fails
* objname - name of an IPA object (optional) */
-IPA.cmd = function (name, args, options, win_callback, fail_callback, objname, command_name)
-{
+IPA.cmd = function (name, args, options, win_callback, fail_callback, objname, command_name) {
var default_json_url = '/ipa/json';
var network_call_count = 0;
@@ -490,8 +488,7 @@ IPA.cmd = function (name, args, options, win_callback, fail_callback, objname, c
/* helper function used to retrieve information about an attribute */
-IPA.get_param_info = function(obj_name, attr)
-{
+IPA.get_param_info = function(obj_name, attr) {
var obj = IPA.metadata[obj_name];
if (!obj) {
return null;
@@ -512,8 +509,7 @@ IPA.get_param_info = function(obj_name, attr)
};
/* helper function used to retrieve attr name with members of type `member` */
-IPA.get_member_attribute = function (obj_name, member)
-{
+IPA.get_member_attribute = function (obj_name, member) {
var obj = IPA.metadata[obj_name];
if (!obj) {
return null;