]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2538: Functions don't need double-namespacing
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 25 Feb 2011 22:45:54 +0000 (22:45 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 25 Feb 2011 22:45:54 +0000 (22:45 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8479 36083f99-b078-4883-b0ff-0f9b5a30f544

js/lib/elgglib.js
js/lib/session.js

index 60907777b45fa3dfb0ba7c6b2571834f4e2d70bc..7a329621bdead1c8586f5b46dff9de655f68d306 100644 (file)
@@ -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) {
index 48821a2604504d0d851d43000cf0fb7faa0cd7ce..a1454aa50178d0d70cb03a0919b3fdf484fc9efe 100644 (file)
@@ -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();
 };