rombert commented on a change in pull request #4: SLING-8283 provide non render 
blocking version of Sling.getSessionInf…
URL: 
https://github.com/apache/sling-org-apache-sling-servlets-post/pull/4#discussion_r263290028
 
 

 ##########
 File path: src/main/resources/system/sling.js
 ##########
 @@ -209,7 +217,24 @@ var Sling = null;
         }
         return null;
     }
-    
+
+    /** Get "session info" from repository. Mainly answers the question: "Who 
am I"
+     *  and "Which workspace am I logged into. Async version of getSessionInfo
+     * @param {Function} callback function, will get an An Object tree as 
first argument
+     *        containing the session information, null if server status <> 200
+     */
+    Sling.getSessionInfoAsync = function(callback) {
+        var 
res=Sling.httpGet(Sling.baseurl+"/system/sling/info.sessionInfo.json",
 
 Review comment:
   Thanks @reusr1 ! I agree the code style is inconsistent, I was only looking 
at your change though :-)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to