mirror of
https://github.com/vale981/lack
synced 2025-03-05 09:21:39 -05:00
Redefine to-app as a generic function.
This commit is contained in:
parent
80a1c2d300
commit
e80f4e2ebc
1 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,8 @@
|
|||
(:method ((component function) env)
|
||||
(funcall component env)))
|
||||
|
||||
(defun to-app (component)
|
||||
(if (typep component 'lack-component)
|
||||
(lambda (env) (call component env))
|
||||
component))
|
||||
(defgeneric to-app (component)
|
||||
(:method ((component lack-component))
|
||||
(lambda (env) (call component env)))
|
||||
(:method ((component t))
|
||||
component))
|
||||
|
|
Loading…
Add table
Reference in a new issue