From 5e55dfcd65dc887f31f64cd071d6daeb3b62bc6c Mon Sep 17 00:00:00 2001 From: Infinae Date: Tue, 3 Dec 2024 08:09:52 +1100 Subject: [PATCH] Add DETACH-FROM-DOM method to CLOG-ELEMENT --- source/clog-element.lisp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/clog-element.lisp b/source/clog-element.lisp index 5d55380..3b1ce66 100644 --- a/source/clog-element.lisp +++ b/source/clog-element.lisp @@ -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 ;; ;;;;;;;;;;;;;;;;;;;;;;