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

4
js/twister_following.js

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

2
js/twister_io.js

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

Loading…
Cancel
Save