code: function save() {
        var value, data = '';
  
        // localStorage can be disabled on WebKit/Gecko so make a dummy storage
        if (!hasOldIEDataSupport) {
          return;
        }
  
        for (var key in items) {
          value = items[key];
          data += (data ? ',' : '') + key.length.toString(32) + ',' + key + ',' + value.length.toString(32) + ',' + value;
        }
  
        storageElm.setAttribute(userDataKey, data);
  
        try {
          storageElm.save(userDataKey);
        } catch (ex) {
          // Ignore disk full
        }
  
        updateKeys();
      }
docs: Saves the items structure into a the userData format.