diff options
author | drry | 2009-01-04 16:44:41 +0000 |
---|---|---|
committer | drry | 2009-01-04 16:44:41 +0000 |
commit | eedccef4a1da859fb5f6382a4ee34c059a4c42cb (patch) | |
tree | e050c2d5c3e90f626cc0de979f8f73c5cef5eaa1 /notifier/subject_wassr.js | |
parent | 274755d24c7024b110ec67d4a86699e16db09ae7 (diff) | |
download | vimperator-plugins-eedccef4a1da859fb5f6382a4ee34c059a4c42cb.tar.bz2 |
* fixed missing `var` statements.
* fixed a regex.
* removed subversion props.
* et cetera.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27924 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'notifier/subject_wassr.js')
-rw-r--r--[-rwxr-xr-x] | notifier/subject_wassr.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/notifier/subject_wassr.js b/notifier/subject_wassr.js index 88a302a..6664889 100755..100644 --- a/notifier/subject_wassr.js +++ b/notifier/subject_wassr.js @@ -38,7 +38,7 @@ notifier.subject.register(notifier.SubjectHttp, { extra: {} }, preInitialize: function() { - [username, password] = $U.getUserAndPassword('http://wassr.jp', 'http://wassr.jp'); + var [username, password] = $U.getUserAndPassword('http://wassr.jp', 'http://wassr.jp'); this.options.url = URL + username; this.options.extra.username = username; this.options.extra.password = password; @@ -51,19 +51,16 @@ notifier.subject.register(notifier.SubjectHttp, { diff: function(cache, parsed) parsed.filter(function(item) !cache.some(function(c) c.html == item.html)), - buildMessages: function(diff) { - return diff.map($U.bind(this, function(d) { - var html = <div> + buildMessages: function(diff) + diff.map($U.bind(this, function(d) + new notifier.Message('Wassr', <div> {d.reply_status_url ? <p><a href={d.reply_status_url}>{'> ' + d.reply_message + ' by ' + d.reply_user_nick}</a></p> : ''} <p> <img src={d.user.profile_image_url} alt={d.user_login_id} width="16" height="16"/> - {d.photo_thumbnail_url ? <img src={d.photo_thumbnail_url}/> : ''} + {d.photo_thumbnail_url ? <img src={d.photo_thumbnail_url} alt=""/> : ''} {d.html || ''} </p> - </div>.toString(); - return new notifier.Message('Wassr', html, d.link) - })); - } + </div>.toString(), d.link))) }); })(); |