Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (response.guid) {
  2.                         if(response.guid == 'clear'){
  3.                             guids.forEach(function(x){
  4.                                 localStorage.removeItem(x);
  5.                             });
  6.                             guids = [];
  7.                         } else {
  8.                             guids.push(response.guid);
  9.                             localStorage.guids = guids.toString();
  10.                             localStorage[response.guid] = this.target.responseText;
  11.                         }  
  12.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement