diff options
Diffstat (limited to 'docs/lab')
-rw-r--r-- | docs/lab/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html index d3bc254e4..a174aac8d 100644 --- a/docs/lab/index.html +++ b/docs/lab/index.html @@ -1628,6 +1628,7 @@ class BoundVar { this.isNumber = e.type == 'number' this.lastValue = this.getValue() this.parentVars = parentVars + this.defaultValue = this.lastValue } refreshValue(ev) { @@ -1747,6 +1748,10 @@ class Vars { getQueryString() { let pairs = [] this.values.forEach((v, k) => { + let vr = this.vars.get(k) + if (vr && vr.defaultValue == v) { + return // skip + } v = (v === true) ? 1 : (v === false || v === null) ? 0 : v pairs.push(encodeURIComponent(k) + '=' + encodeURIComponent(v)) }) |