CodeMaid clean-up

This commit is contained in:
2016-12-21 07:27:25 +01:00
parent 577e8b4127
commit bc5c2bca6d
34 changed files with 152 additions and 175 deletions

View File

@@ -1,5 +1,4 @@
////////////////////////
////////////////////////
// GetElement
//
function GetElement(element) {
@@ -53,7 +52,6 @@ function ElementToggleClass(element, className) {
}
}
function escapeHTML(s) {
return s.replace(/&/g, '&')
.replace(/"/g, '"')
@@ -67,7 +65,6 @@ function fixedEncodeURIComponent(str) {
});
}
////////////////////////
// localStorage polyfill
//
@@ -94,4 +91,4 @@ if (!window.localStorage) {
hasOwnProperty: function (sKey) { return (new RegExp("(?:^|;\\s*)" + escape(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie); }
};
window.localStorage.length = (document.cookie.match(/\=/g) || window.localStorage).length;
}
}