Browse Source

renaming load/storeSessionData functions

master
erqan 11 years ago
parent
commit
97a65c7b7e
  1. 4
      js/interface_home.js
  2. 4
      js/twister_following.js
  3. 2
      js/twister_io.js

4
js/interface_home.js

@ -97,7 +97,7 @@ var InterfaceFunctions = function()
} }
}); });
loadSessionData(); loadFollowingSessionData();
//geting followings of following... //geting followings of following...
for(var i = 0; i < followingUsers.length; i++) { for(var i = 0; i < followingUsers.length; i++) {
if (typeof(followingsFollowings[followingUsers[i]]) === 'undefined') { if (typeof(followingsFollowings[followingUsers[i]]) === 'undefined') {
@ -115,7 +115,7 @@ var InterfaceFunctions = function()
}, followingUsers[i]); }, followingUsers[i]);
} }
} }
storeSessionData(); storeFollowingSessionData();
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000); setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000);
setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000); setTimeout("getRandomFollowSuggestion(processSuggestion)", 1000);

4
js/twister_following.js

@ -45,7 +45,7 @@ function saveFollowingToStorage() {
} }
// load followers & following's followings from sessionStorage // load followers & following's followings from sessionStorage
function loadSessionData() { function loadFollowingSessionData() {
var ns = $.initNamespaceStorage(defaultScreenName); var ns = $.initNamespaceStorage(defaultScreenName);
if (ns.sessionStorage.isSet("followingsFollowings")) if (ns.sessionStorage.isSet("followingsFollowings"))
@ -59,7 +59,7 @@ function loadSessionData() {
} }
// save list of followers & following's followings to sessionStorage // save list of followers & following's followings to sessionStorage
function storeSessionData() { function storeFollowingSessionData() {
var ns = $.initNamespaceStorage(defaultScreenName); var ns = $.initNamespaceStorage(defaultScreenName);
ns.sessionStorage.set("followingsFollowings", followingsFollowings); ns.sessionStorage.set("followingsFollowings", followingsFollowings);
ns.sessionStorage.set("followers", knownFollowers); ns.sessionStorage.set("followers", knownFollowers);

2
js/twister_io.js

@ -231,7 +231,7 @@ function getFullname( username, item ){
notFollowers.push(args.username); notFollowers.push(args.username);
} }
storeSessionData(); storeFollowingSessionData();
}, {"user": defaultScreenName, "item": item, "username": username}); }, {"user": defaultScreenName, "item": item, "username": username});
} }

Loading…
Cancel
Save