Fix tests, add webLinks addon test

This commit is contained in:
Daniel Imms
2018-02-24 10:36:34 -08:00
parent 6a71717751
commit 0d2cc7489e
3 changed files with 46 additions and 11 deletions
+1 -2
View File
@@ -143,8 +143,7 @@ export class Linkifier extends EventEmitter implements ILinkifier {
* @return Whether a link matcher was found and deregistered.
*/
public deregisterLinkMatcher(matcherId: number): boolean {
// ID 0 is the hypertext link matcher which cannot be deregistered
for (let i = 1; i < this._linkMatchers.length; i++) {
for (let i = 0; i < this._linkMatchers.length; i++) {
if (this._linkMatchers[i].id === matcherId) {
this._linkMatchers.splice(i, 1);
return true;