Update docstrings

This commit is contained in:
Florian Bruhin 2017-05-09 17:49:38 +02:00
parent 5f2fb2c4fc
commit e3eda28d88
2 changed files with 4 additions and 3 deletions

View File

@ -155,6 +155,8 @@ class AbstractSearch(QObject):
Attributes: Attributes:
text: The last thing this view was searched for. text: The last thing this view was searched for.
search_displayed: Whether we're currently displaying search results in
this view.
_flags: The flags of the last search (needs to be set by subclasses). _flags: The flags of the last search (needs to be set by subclasses).
_widget: The underlying WebView widget. _widget: The underlying WebView widget.
""" """
@ -163,7 +165,6 @@ class AbstractSearch(QObject):
super().__init__(parent) super().__init__(parent)
self._widget = None self._widget = None
self.text = None self.text = None
# Implementing classes will set this.
self.search_displayed = False self.search_displayed = False
def search(self, text, *, ignore_case=False, reverse=False, def search(self, text, *, ignore_case=False, reverse=False,

View File

@ -251,8 +251,8 @@ class WebEngineCaret(browsertab.AbstractCaret):
"""Callback for javascript which clicks the selected element. """Callback for javascript which clicks the selected element.
Args: Args:
js_elems: The elements serialized from javascript. js_elem: The element serialized from javascript.
tab: Open in a new tab or not. tab: Open in a new tab.
""" """
if js_elem is None: if js_elem is None:
return return