Please suggest solution for older WebKit `Object.defineProperties`
See original GitHub issueHi Kovid! I have been loving to work with RapydScript-NG, even delving a little into the internals as required by my project. Jappy is looking nice! I’ve added .zip export, more examples, and done further testing.
However, as you perhaps know, I’m trying to target certain platforms as a webview app. In particular, I’ve had difficulty with both Android Webviews (older Webkit) and Sugar activities (WebKit2).
They tend to fail when redefining properties with Object.defineProperties
when they’ve already been defined once.
The following code fails for both of these platforms:
for i in range(10):
def a(u):
print ('lala')
print (i)
b = document.createElement('button')
b.onclick = a
document.body.appendChild(b)
While the android webview is hard to debug, I have a main.py
in the Jappy repo that will create a standalone WebView where the issue is present.
Could you suggest a fix? I would really like to support these users and with this lots of syntax gets broken in these browsers. (For instance, I can’t use ElementMaker).
Thank you for your help!
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
Should be fixed now.
You’re welcome 😃 Finally learning javascript was one of my motivations for working on RapydScript.