From db262df7eb5c9780688781bdaad996fbb54bef27 Mon Sep 17 00:00:00 2001 From: drry Date: Thu, 10 Apr 2008 05:02:36 +0000 Subject: lang/javascript/vimperator-plugins/trunk/twitter.js: * oops. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9243 d0d07461-0603-4401-acd4-de1884942a52 --- twitter.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/twitter.js b/twitter.js index 30ee551..64a972e 100644 --- a/twitter.js +++ b/twitter.js @@ -27,13 +27,12 @@ xhr.send(null); var followers_status = window.eval(xhr.responseText); - var html = <> - ]]>.toString() - .replace(/(?:\r?\n|\r)\s*/g, ''); + ]]> + .toSource(); followers_status.forEach(function(stat){ stat.user.name += "\u202c"; stat.text += "\u202c"; @@ -43,8 +42,7 @@ border="0"/> {stat.user.name} : {stat.text}
- .toString() - .replace(/(?:\r?\n|\r)\s*/g, ''); + .toSource(); }); liberator.log(html); liberator.echo(html, true); -- cgit v1.2.3