reusr1 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_r263226525
 
 

 ##########
 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:
   changed the code style - however, that file is all over the place. And yes, 
that's where I was going with that change once the PR gets accepted

----------------------------------------------------------------
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