public Proxy getter_ownerElement() { Log.d(TAG, "get ownerElement", Log.DEBUG_MODE); AttrProxy proxy = (AttrProxy) getProxy(); Scriptable thisObj = this; ti.modules.titanium.xml.ElementProxy javaResult = proxy.getOwnerElement(); Proxy rhinoResult = (Proxy) TypeConverter.javaObjectToJsObject(javaResult, this); return rhinoResult; }
public Object getOwnerElement(Context context, Scriptable thisObj, Object[] args) { Log.d(TAG, "getOwnerElement()", Log.DEBUG_MODE); try { AttrProxy proxy = (AttrProxy) ((Proxy) thisObj).getProxy(); ti.modules.titanium.xml.ElementProxy javaResult = proxy.getOwnerElement(); Proxy rhinoResult = (Proxy) TypeConverter.javaObjectToJsObject(javaResult, this); return rhinoResult; } catch (Throwable throwable) { Context.throwAsScriptRuntimeEx(throwable); return Undefined.instance; } }