Small flavor change.
This commit is contained in:
parent
d657c958c1
commit
49585245ea
@ -149,7 +149,7 @@ $.hasClass = (el, className) ->
|
|||||||
el.classList.contains className
|
el.classList.contains className
|
||||||
|
|
||||||
$.rm = do ->
|
$.rm = do ->
|
||||||
if 'remove' of Element.prototype
|
if 'remove' of Element::
|
||||||
(el) -> el.remove()
|
(el) -> el.remove()
|
||||||
else
|
else
|
||||||
(el) -> el.parentNode?.removeChild el
|
(el) -> el.parentNode?.removeChild el
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user