aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-25 22:45:54 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-25 22:45:54 +0000
commit4f3fd669adb5a65e92c426d488337097758af7a4 (patch)
treec3f66448b4f78b533e64c071f03db350606130d5
parent3e06100df817427b9d517bcf8b177f30f254b843 (diff)
downloadelgg-4f3fd669adb5a65e92c426d488337097758af7a4.tar.gz
elgg-4f3fd669adb5a65e92c426d488337097758af7a4.tar.bz2
Refs #2538: Functions don't need double-namespacing
git-svn-id: http://code.elgg.org/elgg/trunk@8479 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--js/lib/elgglib.js4
-rw-r--r--js/lib/session.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/elgglib.js b/js/lib/elgglib.js
index 60907777b..7a329621b 100644
--- a/js/lib/elgglib.js
+++ b/js/lib/elgglib.js
@@ -193,8 +193,8 @@ elgg.provide = function(pkg, opt_context) {
elgg.assertTypeOf('string', pkg);
var parts = pkg.split('.'),
- context = opt_context || elgg.global,
- part, i;
+ context = opt_context || elgg.global,
+ part, i;
for (i = 0; i < parts.length; i += 1) {
diff --git a/js/lib/session.js b/js/lib/session.js
index 48821a260..a1454aa50 100644
--- a/js/lib/session.js
+++ b/js/lib/session.js
@@ -98,14 +98,14 @@ elgg.get_logged_in_user_guid = function() {
/**
* @return {boolean} Whether there is a user logged in
*/
-elgg.elgg_is_logged_in = function() {
+elgg.is_logged_in = function() {
return (elgg.get_logged_in_user_entity() instanceof elgg.ElggUser);
};
/**
* @return {boolean} Whether there is an admin logged in
*/
-elgg.elgg_is_admin_logged_in = function() {
+elgg.is_admin_logged_in = function() {
var user = elgg.get_logged_in_user_entity();
return (user instanceof elgg.ElggUser) && user.isAdmin();
};