all functions unqote
parent
361aa9b93e
commit
edb8dcb0a9
|
@ -58,4 +58,4 @@ class Component(js.JsObject):
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
s = json.dumps(self._js, default=js._encoder)
|
s = json.dumps(self._js, default=js._encoder)
|
||||||
return re.sub(r'("handler":\s+)("([^"]+)")', r'\1\3', s)
|
return re.sub(r'(":\s+)("(function[^"]+)")', r'\1\3', s)
|
||||||
|
|
Loading…
Reference in New Issue