delete spaces and tabs on line ends

This commit is contained in:
noformnocontent 2013-02-13 00:25:02 +01:00
parent f7240ea2e5
commit 8d89461be7
28 changed files with 222 additions and 222 deletions

View file

@ -47,7 +47,7 @@ function(HostApp, Core, Paths, URI) {
var dom_element = _this.getStatusDOMElement(status);
if (node) {
node.parentNode.insertBefore(dom_element, node);
} else {
@ -115,7 +115,7 @@ function(HostApp, Core, Paths, URI) {
var _this = this;
var callback = function(resp) {
var statuses = JSON.parse(resp.responseText);
for (var i = 0; i < statuses.length; i++) {

View file

@ -33,13 +33,13 @@ function(HostApp, Timeline, URI, Paths) {
for (var i = 0; i < statuses.length; i++) {
var status = statuses[i];
var name;
var profile = this.cache.profiles.getItem(status.entity);
if(profile) {
name = profile["https://tent.io/types/info/basic/v0.1.0"].name;
}
HostApp.notificateUserAboutMention(status.content.text, name || status.entity, status.id, status.entity);
};
}
@ -52,7 +52,7 @@ function(HostApp, Timeline, URI, Paths) {
add_to_search = add_to_search || {};
if (!add_to_search["mentioned_entity"]) {
add_to_search["mentioned_entity"] = HostApp.stringForKey("entity");
add_to_search["mentioned_entity"] = HostApp.stringForKey("entity");
}
Timeline.prototype.getNewData.call(this, add_to_search);

View file

@ -92,7 +92,7 @@ function(HostApp, Paths, Hmac) {
// mac_key
// mac_algorithm
this.register_data = register_data;
// Needed for later App Registration Modification
HostApp.setStringForKey(register_data["mac_key"], "app_mac_key");
HostApp.setStringForKey(register_data["mac_key_id"], "app_mac_key_id");
@ -130,9 +130,9 @@ function(HostApp, Paths, Hmac) {
};
var auth_header = Hmac.makeAuthHeader(
url,
http_method,
HostApp.stringForKey("app_mac_key"),
url,
http_method,
HostApp.stringForKey("app_mac_key"),
HostApp.stringForKey("app_mac_key_id")
);
@ -147,13 +147,13 @@ function(HostApp, Paths, Hmac) {
Oauth.prototype.requestAccessTokenTicketFinished = function(responseBody) {
var access = JSON.parse(responseBody);
var access = JSON.parse(responseBody);
HostApp.setStringForKey(access["access_token"], "user_access_token");
HostApp.setSecret(access["mac_key"]);
HostApp.setStringForKey(access["mac_algorithm"], "user_mac_algorithm");
HostApp.setStringForKey(access["token_type"], "user_token_type");
HostApp.loggedIn();
}
@ -162,9 +162,9 @@ function(HostApp, Paths, Hmac) {
var url = Paths.mkApiRootPath("/apps/" + HostApp.stringForKey("app_id"));
var http_method = "DELETE";
var auth_header = Hmac.makeAuthHeader(
url,
http_method,
HostApp.stringForKey("app_mac_key"),
url,
http_method,
HostApp.stringForKey("app_mac_key"),
HostApp.stringForKey("app_mac_key_id")
);
@ -178,10 +178,10 @@ function(HostApp, Paths, Hmac) {
HostApp.setStringForKey(null, "user_mac_algorithm");
HostApp.setStringForKey(null, "user_token_type");
HostApp.setStringForKey(null, "api_root");
HostApp.setStringForKey(null, "entity");
HostApp.setStringForKey(null, "entity");
}, null, auth_header);
}
return Oauth;

View file

@ -253,7 +253,7 @@ function(HostApp, Core, Paths, URI) {
this.populate(this.profile_template.location, basic.location);
this.populate(this.profile_template.gender, basic.gender);
this.populate(this.profile_template.bio, basic.bio);
if(basic.website_url) {
var url = basic.website_url;
@ -405,7 +405,7 @@ function(HostApp, Core, Paths, URI) {
var _this = this;
if (this.following_id) {
this.setFollowingButton(false);
var url = Paths.mkApiRootPath("/followings/") + this.following_id;
Paths.getURL(url, "DELETE", function(resp) {
@ -566,7 +566,7 @@ function(HostApp, Core, Paths, URI) {
}, null, false); // do not send auth-headers
}
});
});
}
return li;

View file

@ -146,7 +146,7 @@ function(Core, Paths, HostApp, URI) {
if (!callback) {
callback = function(data) { _this.getNewData(); }
}
Core.prototype.repost.call(this, id, entity, callback);
Core.prototype.repost.call(this, id, entity, callback);
}
Timeline.prototype.logout = function() {