lib/ref-counted-token-list.js
// Returns false when the token was not present and thus not removed
Returns false when the token was not present and thus not removed
Returns false when the token was not present and thus not removed
removeToken (token, tokenKey) {
    tokenKey = this.getTokenKey(token, tokenKey)
    if (this.references[tokenKey] != null) {
      ({ token } = this.references[tokenKey])
      this.updateRefCount(tokenKey, token, -1)
      return true
    } else {
      return false
    }
  }
removeToken ( token , tokenKey ) { tokenKey = this . getTokenKey ( token , tokenKey ) if ( this . references [ tokenKey ] != null ) { ( { token } = this . references [ tokenKey ] ) this . updateRefCount ( tokenKey , token , - 1 ) return true } else { return false } }
Returns false when the token was not present and thus not removed
Returns false when the token was not present and thus not removed