diff options
author | drry | 2008-05-09 20:30:26 +0000 |
---|---|---|
committer | drry | 2008-05-09 20:30:26 +0000 |
commit | 5b4bb706b5308edc722fc4198e2cc5e1484bcbb2 (patch) | |
tree | 8b2891bdee2e1dc92cf713d34e58323d81264821 /googlesuggest.js | |
parent | b0ca37783fae2cfc32020dbe7c13ee919cdb0b13 (diff) | |
download | vimperator-plugins-5b4bb706b5308edc722fc4198e2cc5e1484bcbb2.tar.bz2 |
* Array に対する `for each` 文を回避しました。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11317 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'googlesuggest.js')
-rw-r--r-- | googlesuggest.js | 3 |
1 files changed, 2 insertions, 1 deletions
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];
}
}
|