From b7700ea815222b4de80741ad77b31707051300bd Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 16 Feb 2011 14:26:35 +0100 Subject: 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 --- install/ui/ipa.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'install/ui/ipa.js') 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; -- cgit