aboutsummaryrefslogtreecommitdiffstats
path: root/migemized_find.js
diff options
context:
space:
mode:
authoranekos2008-11-01 08:45:54 +0000
committeranekos2008-11-01 08:45:54 +0000
commit8540a08cc4517749bbc941ed6c8bad081e49c7fc (patch)
treed346ba135966ed7b62ad5f7eddaf450790981ea6 /migemized_find.js
parent831b9438b243114d44f13cd3d9814d3f0a94e801 (diff)
downloadvimperator-plugins-8540a08cc4517749bbc941ed6c8bad081e49c7fc.tar.bz2
CVS Head対応。
他。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22507 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'migemized_find.js')
-rw-r--r--migemized_find.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/migemized_find.js b/migemized_find.js
index 5c5b461..243b6e3 100644
--- a/migemized_find.js
+++ b/migemized_find.js
@@ -32,7 +32,7 @@
// Link:
// http://d.hatena.ne.jp/nokturnalmortum/20080805#1217941126
-(function () { try {
+(function () {
let XMigemoCore = Components.classes['@piro.sakura.ne.jp/xmigemo/factory;1']
.getService(Components.interfaces.pIXMigemoFactory)
@@ -151,7 +151,7 @@
span.setAttribute('style', this.coloredStyle(color));
target.range.surroundContents(span);
-
+
if (doScroll) {
let scroll = function () {
let pos = getPosition(span);
@@ -172,8 +172,8 @@
let content = range.extractContents();
range.setStartBefore(span);
range.insertNode(content);
- range.selectNode(span);
- range.deleteContents();
+ range.selectNode(span);
+ range.deleteContents();
};
if (setRemover)
@@ -233,7 +233,7 @@
this.removeHighlight(color);
- if (result)
+ if (result)
this.highlight(result, color, true, true);
this.firstResult = result;
@@ -262,7 +262,7 @@
start.setStart(last.range.endContainer, last.range.endOffset);
}
} else {
- let idx = backwards ? frames.length - 1
+ let idx = backwards ? frames.length - 1
: 0;
last = {frame: frames[0], range: this.makeBodyRange(frames[0])};
}
@@ -447,8 +447,8 @@
MF.removeHighlight(color);
}
);
-
- // find コマンド
+
+ // find コマンド
commands.addUserCommand(
['mf[ind]'],
'Migemized find',
@@ -467,4 +467,4 @@
// 外から使えるように
liberator.plugins.migemizedFind = MF;
-}catch(e){liberator.log(e);}})();
+})();