MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / setUrl

Function setUrl

tests/qunit-2.9.2.js:4794–4821  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

4792 }
4793
4794 function setUrl(params) {
4795 var key,
4796 arrValue,
4797 i,
4798 querystring = "?",
4799 location = window$1.location;
4800
4801 params = QUnit.extend(QUnit.extend({}, QUnit.urlParams), params);
4802
4803 for (key in params) {
4804
4805 // Skip inherited or undefined properties
4806 if (hasOwn.call(params, key) && params[key] !== undefined) {
4807
4808 // Output a parameter for each value of this key
4809 // (but usually just one)
4810 arrValue = [].concat(params[key]);
4811 for (i = 0; i < arrValue.length; i++) {
4812 querystring += encodeURIComponent(key);
4813 if (arrValue[i] !== true) {
4814 querystring += "=" + encodeURIComponent(arrValue[i]);
4815 }
4816 querystring += "&";
4817 }
4818 }
4819 }
4820 return location.protocol + "//" + location.host + location.pathname + querystring.slice(0, -1);
4821 }
4822
4823 function applyUrlParams() {
4824 var i,

Callers 4

qunit-2.9.2.jsFile · 0.85
toolbarChangedFunction · 0.85
applyUrlParamsFunction · 0.85
appendTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected