OpenNTF/SocialSDK — pull request #421 by projsaha (2013-08-21 12:57:22+00:00)
Title: Update Profile showcase sample - removing of race condition in showing

updated profile message.

There is a race condition on showing appropriate message when update profile is completed. This leads to failure of the unit test case sporadically. When update call is made, a call to load the profile is made and this leads to display of message - "Successfully loaded the profile". This call is asynchronous in nature. Also at the end of the update method, "Successfully updated the profile" message is also displayed. This leads to race condition.

Fix is loadprofile now accepts a flag whether the call to the method is made from load button or update button. Based on this flag, appropriate message is shown and race condition is removed.

I have tested this UT with dojo and jquery and they run fine