diff --git a/orun/extjs/base.py b/orun/extjs/base.py index 6b7a050..086942f 100644 --- a/orun/extjs/base.py +++ b/orun/extjs/base.py @@ -58,4 +58,4 @@ class Component(js.JsObject): def __str__(self): 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)