Update RapydScript

This commit is contained in:
Kovid Goyal 2017-05-20 15:29:45 +05:30
parent dedea3bc4b
commit f0318871ab
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -60,8 +60,11 @@ def _makeelement(tag, *args, **kwargs):
def maker_for_document(document): def maker_for_document(document):
# Create an elementmaker to be used with the specified document # Create an elementmaker to be used with the specified document
E = _makeelement.bind(document) E = _makeelement.bind(document)
for tag in html5_tags: Object.defineProperties(E, {
Object.defineProperty(E, tag, {'value':_makeelement.bind(document, tag)}) tag: {
'value':_makeelement.bind(document, tag)
} for tag in html5_tags
})
return E return E
if jstype(document) is 'undefined': if jstype(document) is 'undefined':