~ubuntu-branches/debian/stretch/adblock-plus/stretch

« back to all changes in this revision

Viewing changes to chrome/content/ui/filters-search.js

  • Committer: Package Import Robot
  • Author(s): David Prévot, Wladimir Palant, David Prévot
  • Date: 2015-08-11 13:53:30 UTC
  • mfrom: (0.48.1) (0.47.1) (0.46.1) (0.33.3) (59.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20150811135330-x1l7w2y7ohir1ek3
Tags: 2.6.10+dfsg-1
[ Wladimir Palant ]
* Releasing Adblock Plus 2.6.10

[ David Prévot ]
* Don’t ship new fonts

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    // Now go through the other subscriptions
91
91
    let result = Ci.nsITypeAheadFind.FIND_FOUND;
92
92
    let subscriptions = FilterStorage.subscriptions.slice();
93
 
    subscriptions.sort(function(s1, s2) (s1 instanceof SpecialSubscription) - (s2 instanceof SpecialSubscription));
 
93
    subscriptions.sort((s1, s2) => (s1 instanceof SpecialSubscription) - (s2 instanceof SpecialSubscription));
94
94
    let current = subscriptions.indexOf(FilterView.subscription);
95
95
    direction = direction || 1;
96
96
    for (let i = current + direction; ; i+= direction)
127
127
          if (oldFocus)
128
128
          {
129
129
            oldFocus.focus();
130
 
            Utils.runAsync(oldFocus.focus, oldFocus);
 
130
            Utils.runAsync(() => oldFocus.focus());
131
131
          }
132
132
 
133
 
          Utils.runAsync(findText, null, text, direction, direction == 1 ? -1 : subscription.filters.length);
 
133
          Utils.runAsync(() => findText(text, direction, direction == 1 ? -1 :  subscription.filters.length));
134
134
          return result;
135
135
        }
136
136
      }