From e967e0c922d2d625940ad8fd393633ee19900a74 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 17 Oct 2015 15:47:34 +0200 Subject: [PATCH] Remove `vim.isBlacklisted()` from the public API --- documentation/api.md | 3 --- extension/lib/vim.coffee | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/documentation/api.md b/documentation/api.md index 36a461d..7f84cca 100644 --- a/documentation/api.md +++ b/documentation/api.md @@ -462,9 +462,6 @@ A `vim` object has the following properties: `...args` to the mode. It is up to every mode to do whatever it wants to with `...args`. -- isBlacklisted(): `Function`. Returns `true` if the current URL is - [blacklisted], and `false` otherwise. - - isFrameEvent(event): `Function`. Returns `true` if `event` occurred in web page content, and `false` otherwise (if it occurred in Firefox’s UI). diff --git a/extension/lib/vim.coffee b/extension/lib/vim.coffee index 09316a2..e260e56 100644 --- a/extension/lib/vim.coffee +++ b/extension/lib/vim.coffee @@ -39,7 +39,7 @@ class Vim }) location = utils.getCurrentLocation(@browser) - @enterMode(if @isBlacklisted(location.href) then 'ignore' else 'normal') + @enterMode(if @_isBlacklisted(location.href) then 'ignore' else 'normal') @_parent.emit('load', {vim: this, location}) # Require the subset of the options needed to be listed explicitly (as @@ -61,7 +61,7 @@ class Vim return @[method](args...) ) - isBlacklisted: (url) -> @options.black_list.some((regex) -> regex.test(url)) + _isBlacklisted: (url) -> @options.black_list.some((regex) -> regex.test(url)) isFrameEvent: (event) -> return (event.originalTarget == @window.gBrowser.selectedBrowser) -- 2.39.3