* setParam * Sets a `key=value` pair that will be added to the hash params. * Values passed as `undefined` or `null` will be deleted from the query params * Values passed as empty string '' will remain in the query params * @param k {String} The key to set * @param v {String} The
(k, v)
| 208 | * @param v {String} The value to set, pass `undefined` to delete the value |
| 209 | */ |
| 210 | setParam(k, v) { |
| 211 | if (typeof k !== 'string') return; |
| 212 | |
| 213 | if (v === undefined || v === null || v === 'undefined' || v === 'null') { |
| 214 | this._currParams.delete(k); |
| 215 | } else { |
| 216 | this._currParams.set(k, v); |
| 217 | } |
| 218 | |
| 219 | if (this._started && !this._paused) { |
| 220 | this.deferredUpdateHash(); |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | |
| 225 | /** |
no outgoing calls
no test coverage detected