diff options
| author | Jez Ng | 2012-08-04 22:14:48 -0700 |
|---|---|---|
| committer | Jez Ng | 2012-08-04 22:14:48 -0700 |
| commit | a697646163a5ab9ec6096591b8184a29fa49f2e9 (patch) | |
| tree | 8274ddc7fe321f1d846c83a4b576403c0fc1f74c /lib | |
| parent | 6528015541912147b6de498de17d4375c1bb9413 (diff) | |
| download | vimium-a697646163a5ab9ec6096591b8184a29fa49f2e9.tar.bz2 | |
Refactor link hints to be more functional.
This paves the way for the hints code to be reused in other modes.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index 0ce9c50c..c0efd344 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -9,6 +9,11 @@ DomUtils = )() # + # Remove an element from its DOM tree. + # + removeElement: (el) -> el.parentNode.removeChild el + + # # Takes an array of XPath selectors, adds the necessary namespaces (currently only XHTML), and applies them # to the document root. The namespaceResolver in evaluateXPath should be kept in sync with the namespaces # here. |
