Allow second property list argument in $.el.
This commit is contained in:
parent
28e7259c20
commit
4f5b06c5ec
@ -202,9 +202,10 @@ $.before = (root, el) ->
|
|||||||
$.replace = (root, el) ->
|
$.replace = (root, el) ->
|
||||||
root.parentNode.replaceChild $.nodes(el), root
|
root.parentNode.replaceChild $.nodes(el), root
|
||||||
|
|
||||||
$.el = (tag, properties) ->
|
$.el = (tag, properties, properties2) ->
|
||||||
el = d.createElement tag
|
el = d.createElement tag
|
||||||
$.extend el, properties if properties
|
$.extend el, properties if properties
|
||||||
|
$.extend el, properties2 if properties2
|
||||||
el
|
el
|
||||||
|
|
||||||
$.on = (el, events, handler) ->
|
$.on = (el, events, handler) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user