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