Skip to content

Commit

Permalink
Fixed tests and docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed May 27, 2023
1 parent b6ebc11 commit 19a8285
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qlfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
("ultralisp" .
(:class qlot/source/dist:source-dist
:initargs (:distribution "http://dist.ultralisp.org" :%version :latest)
:version "20230406120500"))
:version "20230527224500"))
1 change: 1 addition & 0 deletions src/actions.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(uiop:define-package #:reblocks/actions
(:use #:cl)
(:import-from #:log)
(:import-from #:yason)
(:import-from #:reblocks/app
#:get-prefix
#:get-prefix-actions)
Expand Down
2 changes: 2 additions & 0 deletions src/doc/page.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(:import-from #:40ants-doc
#:defsection)
(:import-from #:reblocks/page
#:find-widget-by-id
#:page
#:init-page
#:on-page-refresh
Expand Down Expand Up @@ -89,6 +90,7 @@ then you should wrap all changing code in WITH-METADATA-LOCK macro.
(current-page function)
(get-page-by-id function)
(in-page-context-p function)
(find-widget-by-id function)

(ensure-page-metadata macro)
(with-metadata-lock macro)
Expand Down
7 changes: 4 additions & 3 deletions src/page.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@


(defun register-widget (widget)
(setf (gethash (dom-id widget)
(id-to-widget (current-page)))
widget))
(when (in-page-context-p)
(setf (gethash (dom-id widget)
(id-to-widget (current-page)))
widget)))

0 comments on commit 19a8285

Please sign in to comment.