From 5b4bb706b5308edc722fc4198e2cc5e1484bcbb2 Mon Sep 17 00:00:00 2001 From: drry Date: Fri, 9 May 2008 20:30:26 +0000 Subject: * Array に対する `for each` 文を回避しました。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11317 d0d07461-0603-4401-acd4-de1884942a52 --- googlesuggest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'googlesuggest.js') diff --git a/googlesuggest.js b/googlesuggest.js index 0036fcd..ff6da04 100644 --- a/googlesuggest.js +++ b/googlesuggest.js @@ -24,8 +24,9 @@ liberator.commands.addUserCommand(['google'],"Search Web sites with Google Sugge xhr.send(null); var response = window.eval(xhr.responseText)[1]; - for each (var r in response) + response.forEach(function(r) { completionList.push([r,"Suggests"]); + }); return [0,completionList]; } } -- cgit v1.2.3