in salesforce/canvas/public/javascripts/canvas-all.js [749:777]
function parseHash(hash) {
var i, nv, nvp, n, v;
if (!$$.isNil(hash)) {
if (hash.indexOf('#') === 0) {
hash = hash.substr(1);
}
nvp = hash.split('&');
for (i = 0; i < nvp.length; i += 1) {
nv = nvp[i].split('=');
n = nv[0];
v = decodeURIComponent(nv[1]);
if ('access_token' === n) {
token(v);
} else {
if ('instance_url' === n) {
instanceUrl(v);
} else {
if ('target_origin' === n) {
tOrigin = decodeURIComponent(v);
} else {
if ('instance_id' === n) {
instId = v;
}
}
}
}
}
}
}