Add DETACH-FROM-DOM method to CLOG-ELEMENT

This commit is contained in:
Infinae 2024-12-03 08:09:52 +11:00 committed by GitHub
parent 961b87f285
commit 5e55dfcd65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2354,6 +2354,16 @@ is not stored in connection-data will become subject to browser-gc requests."))
(defmethod remove-from-dom ((obj clog-element))
(jquery-execute obj "remove()"))
;;;;;;;;;;;;;;;;;;;;;
;; detach-from-dom ;;
;;;;;;;;;;;;;;;;;;;;;
(defgeneric detach-from-dom (clog-element)
(:documentation "Detach CLOG-Element from the DOM."))
(defmethod detach-from-dom ((obj clog-element))
(jquery-execute obj "detach()"))
;;;;;;;;;;;;;;;;;;;;;;
;; remove-from-clog ;;
;;;;;;;;;;;;;;;;;;;;;;