Removed decodeSpace function: fixes #399

This commit is contained in:
Barney Carroll 2015-01-06 17:34:55 +00:00
parent c81805f659
commit 18dd27a493

View file

@ -674,13 +674,10 @@ var m = (function app(window, undefined) {
var pairs = str.split("&"), params = {};
for (var i = 0, len = pairs.length; i < len; i++) {
var pair = pairs[i].split("=");
params[decodeSpace(pair[0])] = pair[1] ? decodeSpace(pair[1]) : ""
params[decodeURIComponent(pair[0])] = pair[1] ? decodeURIComponent(pair[1]) : ""
}
return params
}
function decodeSpace(string) {
return decodeURIComponent(string.replace(/\+/g, " "))
}
function reset(root) {
var cacheKey = getCellCacheKey(root);
clear(root.childNodes, cellCache[cacheKey]);