Skip to content
Snippets Groups Projects
Commit b634a81c authored by Armand Bahi's avatar Armand Bahi
Browse files

Patch problèmes en mode compilation simple

parent 8ba10d50
Branches
Tags
No related merge requests found
......@@ -90,6 +90,18 @@ String.prototype.withoutAccents = function () {
var noaccent = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u', 'N', 'n', 'C', 'c'];
var str = this;
// Patch erreur lors de la compilation en mode SIMPLE
if (goog.isObject(str)) {
var sTmp = '';
for (var key in str) {
if (str.hasOwnProperty(key)) {
sTmp += str[key];
}
}
str = sTmp
}
for (var i = 0; i < accent.length; i++) {
str = str.replace(accent[i], noaccent[i]);
}
......@@ -107,6 +119,17 @@ String.prototype.removeURLParams = function (aForbiddenParams) {
var sUrl = this;
var paramIndex, nextParamIndex;
// Patch erreur lors de la compilation en mode SIMPLE
if (goog.isObject(sUrl)) {
var sTmp = '';
for (var key in sUrl) {
if (sUrl.hasOwnProperty(key)) {
sTmp += sUrl[key];
}
}
sUrl = sTmp
}
for (var i = 0; i < aForbiddenParams.length; i++) {
// Cas où le paramètre commence par &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment