Update RapydScript

This commit is contained in:
Kovid Goyal 2016-03-21 14:18:40 +05:30
parent 889dcc9140
commit 2f6d4ea260

View File

@ -46,7 +46,9 @@ def _makeelement(tag, *args, **kwargs):
if str.startswith(attr, 'on'): if str.startswith(attr, 'on'):
attr = attr[2:] attr = attr[2:]
ans.addEventListener(attr, val) ans.addEventListener(attr, val)
else: elif val is True:
ans.setAttribute(vattr, vattr)
elif val is not False:
ans.setAttribute(vattr, val) ans.setAttribute(vattr, val)
for arg in args: for arg in args: