From 4badc3a64ccc5a239bcb259ef2bbbe773c4899b0 Mon Sep 17 00:00:00 2001 From: suVene Date: Mon, 8 Dec 2008 18:46:25 +0000 Subject: とりあえず、はてなボトルの変更通知はできるようになった。TODO: wedata, animation. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26154 d0d07461-0603-4401-acd4-de1884942a52 --- notifier/subject_hatelabo_bottle.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'notifier') diff --git a/notifier/subject_hatelabo_bottle.js b/notifier/subject_hatelabo_bottle.js index 6c4a330..7a00d13 100644 --- a/notifier/subject_hatelabo_bottle.js +++ b/notifier/subject_hatelabo_bottle.js @@ -50,15 +50,10 @@ notifier.subject.register(notifier.SubjectHttp, { diff: function(cache, parsed) { var ret = []; parsed.forEach(function(element) { - if (!cache.some(function(c) { if (c.toString() == element.toString()) return true })) + if (!cache.some(function(c) { if (c.textContent == element.textContent) return true })) ret.push(element); }); - return ret; - var text = (new XMLSerializer()).serializeToString(parsed[0]) - .replace(/<[^>]+>/g, function(all) all.toLowerCase()) - .replace(//g, ''); // actually - return text; }, buildMessages: function(diff) { var ret = []; -- cgit v1.2.3