From 4f5b06c5ec9e092a81c6f7157f5ba44e4bcfb33f Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 22 Nov 2015 02:23:25 -0800 Subject: [PATCH] Allow second property list argument in $.el. --- src/General/$.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/General/$.coffee b/src/General/$.coffee index ae0382f4b..85ead1f25 100644 --- a/src/General/$.coffee +++ b/src/General/$.coffee @@ -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) ->