Last active
April 6, 2016 12:41
-
-
Save beckettkev/cd45d335d54e54ca44851f867b9934d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The following code assumes you have a javascript namespace called MyCompany. I recommend you either swap that out for your namespace or create an instance of MyCompany before trying the code | |
var MyCompany = MyCompany || {}; | |
*/ | |
(function (userProfiles, $) { | |
//This is where we hold our lovely properties | |
userProfiles.Current = { | |
Account: '', | |
FullName: '', | |
OfficeLocation: '', | |
Region: '', | |
Country: '', | |
Global: '', | |
Campaign: '', | |
Group: '', | |
Business: '' | |
}; | |
//... | |
})(MyCompany.UserProfiles = MyCompany.UserProfiles || {}, jQuery); | |
//now we can get at our properties (when populated) using MyCompany.UserProfiles.Current.<PROPERTY NAME> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment