aboutsummaryrefslogtreecommitdiffstats
path: root/exopen.js
diff options
context:
space:
mode:
authordrry2009-01-22 19:32:06 +0000
committerdrry2009-01-22 19:32:06 +0000
commitdcca60ea0cd7939f3e9aa7657bd3ae30bf909608 (patch)
tree28dfd9a8076b11ca9a98dd880f86406a7ec4302c /exopen.js
parent9cf3cdfadf889ef6d3007d5d287fa1f3926945e5 (diff)
downloadvimperator-plugins-dcca60ea0cd7939f3e9aa7657bd3ae30bf909608.tar.bz2
* cosmetic changes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28871 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'exopen.js')
-rw-r--r--exopen.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/exopen.js b/exopen.js
index 2105ecd..0126306 100644
--- a/exopen.js
+++ b/exopen.js
@@ -127,18 +127,16 @@ liberator.plugins.exOpen = (function() {
case '%SEL%':
if (sel) return sel;
else if (selection.rangeCount < 1) return '';
- for (let i=0, c=selection.rangeCount; i<c; (function(r) {
- sel += r.toString();
- })(selection.getRangeAt(i++)));
+ for (let i=0, c=selection.rangeCount; i<c;
+ sel += selection.getRangeAt(i++).toString());
return sel;
case '%HTMLSEL%':
if (htmlsel) return sel;
if (selection.rangeCount < 1) return '';
let serializer = new XMLSerializer();
- for (let i=0, c=selection.rangeCount; i<c; (function(r) {
- htmlsel += serializer.serializeToString(r.cloneContents());
- })(selection.getRangeAt(i++)));
+ for (let i=0, c=selection.rangeCount; i<c;
+ htmlsel += serializer.serializeToString(selection.getRangeAt(i++).cloneContents()));
return htmlsel;
}
return '';