diff --git a/orun/extjs/base.py b/orun/extjs/base.py index 2374d9d..1ef6229 100644 --- a/orun/extjs/base.py +++ b/orun/extjs/base.py @@ -36,9 +36,6 @@ def getCmp(id): def getBody(): return js.JsNode('Ext.getBody()') -def re(pattern): - return js.RE(pattern) - tip = js.JsNode('Ext.tip') class Component(js.JsObject): diff --git a/orun/js.py b/orun/js.py index c2cbcf5..b97b81d 100644 --- a/orun/js.py +++ b/orun/js.py @@ -11,6 +11,9 @@ class RE: def __init__(self, re): self.re = re +def re(pattern): + return RE(pattern) + class FuncWithParams: def __init__(self, func, args = [], params = {}): self.func = func