<eval>:113:20 Expected comma but found for
var header = [key for (key in params) if (key.indexOf('oauth_') == 0)].sort()
^ in <eval> at line number 113 at column number 20
ここっぽい
Twitter.prototype.createAuthorizationHeader = function(params) {
var self = this;
// oauth_* という名前のパラメータだけを連結
var header = [key for (key in params) if (key.indexOf('oauth_') == 0)].sort()
.map(function(key) {
return stringFormat('{0}=\"{1}\"', self.urlEncode(key), self.urlEncode(params[key]));
}).join(', ');
----------------------------------------------------------------------------
function getTwitterUserHTML(user,template)
略
var html = getTwitterUserFromJson(json, templateText);
//最新ツイート取得
//if (json.statuses_count > 0) {
html = getTwitterStatusFromJson(json.status, html);
//}
return html;
}
----------------------------------------------------------------------------
を
----------------------------------------------------------------------------
function getTwitterUserHTML(user,template)
略
//最新ツイート取得
//if (json.statuses_count > 0) {
// html = getTwitterStatusFromJson(json.status, html);
//}
var url = 'https://api.twitter.com/1.1/statuses/show/' + json.status.id_str + '.json';
var json = getJson(url);
if (!json) {
return null;
}
html = getTwitterStatusFromJson(json, html);
sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot read property "resLabel" from null (<Unknown source>#40) in <Unknown source> at line number 40