patternlab/styleguide/public/styleguide/js/patternlab-viewer.js
function (name) {
    var updateCookieVals = "";
    var cookieVals = $.cookie(this.cookieName).split("|");
    var k = 0;
    for (var i = 0; i < cookieVals.length; i++) {
      var fieldVals = cookieVals[i].split("~");
      if (fieldVals[0] != name) {
        updateCookieVals += (k === 0) ? fieldVals[0]+"~"+fieldVals[1] : "|"+fieldVals[0]+"~"+fieldVals[1];
        k++;
      }
    }
    $.cookie(this.cookieName,updateCookieVals);
  }
function (name) {
    var updateCookieVals = "";
    var cookieVals = $.cookie(this.cookieName).split("|");
    var k = 0;
    for (var i = 0; i < cookieVals.length; i++) {
      var fieldVals = cookieVals[i].split("~");
      if (fieldVals[0] != name) {
        updateCookieVals += (k === 0) ? fieldVals[0]+"~"+fieldVals[1] : "|"+fieldVals[0]+"~"+fieldVals[1];
        k++;
      }
    }
    $.cookie(this.cookieName,updateCookieVals);
  }
function ( name ) { var updateCookieVals = "" ; var cookieVals = $ . cookie ( this . cookieName ) . split ( "|" ) ; var k = 0 ; for ( var i = 0 ; i < cookieVals . length ; i ++ ) { var fieldVals = cookieVals [ i ] . split ( "~" ) ; if ( fieldVals [ 0 ] != name ) { updateCookieVals += ( k === 0 ) ? fieldVals [ 0 ] + "~" + fieldVals [ 1 ] : "|" + fieldVals [ 0 ] + "~" + fieldVals [ 1 ] ; k ++ ; } } $ . cookie ( this . cookieName , updateCookieVals ) ; }
Remove the given key
@param  {String}       the name of the key
Remove the given key