This commit is contained in:
Kovid Goyal 2016-03-31 23:18:59 +05:30
parent b177a6931f
commit 477439cfe6

View File

@ -46,8 +46,9 @@ def build_rule(selector, **kw):
ans.push('}') ans.push('}')
return ans.join('\n') + '\n' return ans.join('\n') + '\n'
def clear(*nodes): def clear():
for node in nodes: for v'var i = 0; i < arguments.length; i++':
node = arguments[i]
while node.firstChild: while node.firstChild:
node.removeChild(node.firstChild) node.removeChild(node.firstChild)