Merge pull request #398 from infinae/main

Add DETACH-FROM-DOM method to CLOG-ELEMENT
This commit is contained in:
David Botton 2025-01-25 21:40:38 -05:00 committed by GitHub
commit 4bac089b18
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)) (defmethod remove-from-dom ((obj clog-element))
(jquery-execute obj "remove()")) (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 ;; ;; remove-from-clog ;;
;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;