Allow second property list argument in $.el.

This commit is contained in:
ccd0 2015-11-22 02:23:25 -08:00
parent 28e7259c20
commit 4f5b06c5ec

View File

@ -202,9 +202,10 @@ $.before = (root, el) ->
$.replace = (root, el) ->
root.parentNode.replaceChild $.nodes(el), root
$.el = (tag, properties) ->
$.el = (tag, properties, properties2) ->
el = d.createElement tag
$.extend el, properties if properties
$.extend el, properties if properties
$.extend el, properties2 if properties2
el
$.on = (el, events, handler) ->