Revert "Handle {} elements in elements._js_cb_single"

This reverts commit f59a9d37252599c8fbda4cc687bd9f094c6d05b9.

Since we're now using a webelem function, this isn't needed anymore.
This commit is contained in:
Florian Bruhin 2016-08-18 15:56:48 +02:00
parent dbb3929bf3
commit 1956480164

View File

@ -339,7 +339,7 @@ class WebEngineElements(browsertab.AbstractElements):
js_elem: The element serialized from javascript. js_elem: The element serialized from javascript.
""" """
log.webview.debug("Got element from JS: {!r}".format(js_elem)) log.webview.debug("Got element from JS: {!r}".format(js_elem))
if not js_elem: if js_elem is None:
callback(None) callback(None)
else: else:
elem = webengineelem.WebEngineElement(js_elem, tab=self) elem = webengineelem.WebEngineElement(js_elem, tab=self)