Kill trailing whitespaces in javascript files

This commit is contained in:
小太
2013-03-19 23:09:22 +11:00
parent 35f1304157
commit c107f96cec
25 changed files with 128 additions and 128 deletions

View File

@@ -1,6 +1,6 @@
(function() {
Danbooru.Cookie = {};
Danbooru.Cookie.put = function(name, value, days) {
if (days == null) {
days = 365;
@@ -11,7 +11,7 @@
var expires = "; expires=" + date.toGMTString();
document.cookie = name + "=" + encodeURIComponent(value) + expires + "; path=/";
}
Danbooru.Cookie.raw_get = function(name) {
var nameEq = name + "=";
var ca = document.cookie.split(";");
@@ -30,11 +30,11 @@
return "";
}
Danbooru.Cookie.get = function(name) {
return this.unescape(this.raw_get(name));
}
Danbooru.Cookie.remove = function(name) {
this.put(name, "", -1);
}
@@ -45,7 +45,7 @@
Danbooru.Cookie.initialize = function() {
var loc = location.href;
if (loc.match(/^http/)) {
loc = loc.replace(/^https?:\/\/[^\/]+/, "")
}