1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 06:14:12 +01:00

Add 'const service'

This commit is contained in:
Kris Maglione
2008-12-17 16:41:54 -05:00
parent 1ffb5e90ad
commit 6a04a6e7cf
12 changed files with 108 additions and 186 deletions

View File

@@ -133,9 +133,7 @@ function Search() //{{{
var highlightObj = {
search: function (aWord, matchCase)
{
var finder = Cc["@mozilla.org/embedcomp/rangefind;1"]
.createInstance()
.QueryInterface(Ci.nsIFind);
var finder = Cc["@mozilla.org/embedcomp/rangefind;1"].createInstance(Ci.nsIFind);
if (matchCase !== undefined)
finder.caseSensitive = matchCase;