Skip to content

Commit bf7e22c

Browse files
RAMartpuredanger
authored andcommitted
DXML-75 Added backwards compatibility
1 parent 08d09d5 commit bf7e22c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/clojure/clojure/data/xml/event.clj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@
3939
(defrecord CommentEvent [str])
4040
(defrecord QNameEvent [qn])
4141

42+
; For backwards compatibility only.
43+
; See: https://clojure.atlassian.net/browse/DXML-75?focusedCommentId=57959
44+
(defn ->EndElementEvent
45+
([] ;; Deprecated
46+
(EndElementEvent. nil nil nil))
47+
48+
([tag nss location-info]
49+
(EndElementEvent. tag nss location-info)))
50+
51+
(def ^{:deprecated "0.2.0-alpha11"} end-element-event
52+
(->EndElementEvent nil nil nil))
53+
4254
;; Event Generation for stuff to show up in generated xml
4355

4456
(let [second-arg #(do %2)

0 commit comments

Comments
 (0)