use defNew instead of defnew
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
(defnew [&prop :String archiveDir]
|
(defNew [&prop :String archiveDir]
|
||||||
|
|
||||||
[:Array<System> systems
|
[:Array<System> systems
|
||||||
[]
|
[]
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
(method ,name [,@methodArgs] ,@body)
|
(method ,name [,@methodArgs] ,@body)
|
||||||
(dictSet commands ,(symbolName name) (object args [,@commandArgs] handler (the Function ,name)))}))
|
(dictSet commands ,(symbolName name) (object args [,@commandArgs] handler (the Function ,name)))}))
|
||||||
|
|
||||||
(defnew [&prop :Archive archive
|
(defNew [&prop :Archive archive
|
||||||
&prop :ArchiveUI ui]
|
&prop :ArchiveUI ui]
|
||||||
[&mut :Array<Entry> selectedEntries []
|
[&mut :Array<Entry> selectedEntries []
|
||||||
&mut :ChangeSet lastChangeSet []
|
&mut :ChangeSet lastChangeSet []
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
(controller.runCommand (dictGet controller.commands command))
|
(controller.runCommand (dictGet controller.commands command))
|
||||||
(Sys.println "$command is not a valid command"))))))
|
(Sys.println "$command is not a valid command"))))))
|
||||||
|
|
||||||
(defnew [])
|
(defNew [])
|
||||||
|
|
||||||
(method :Void enterText [prompt resolve maxLength]
|
(method :Void enterText [prompt resolve maxLength]
|
||||||
(Sys.print "$prompt ")
|
(Sys.print "$prompt ")
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
(processEntry archive e)
|
(processEntry archive e)
|
||||||
(archive.refreshEntry e)))
|
(archive.refreshEntry e)))
|
||||||
|
|
||||||
(defnew [&prop :EntryChecker canProcessEntry
|
(defNew [&prop :EntryChecker canProcessEntry
|
||||||
&prop :EntryProcessor processEntry]
|
&prop :EntryProcessor processEntry]
|
||||||
[])
|
[])
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
(load "../Lib.kiss")
|
(load "../Lib.kiss")
|
||||||
|
|
||||||
(defnew [&prop :String tagFilterString // This doesn't need to be a &prop because it will be captured by the lambda, but maybe it will be useful to query from the system later
|
(defNew [&prop :String tagFilterString // This doesn't need to be a &prop because it will be captured by the lambda, but maybe it will be useful to query from the system later
|
||||||
// TODO make a &super annotation that passes an argument to the super constructor
|
// TODO make a &super annotation that passes an argument to the super constructor
|
||||||
:EntryProcessor processor]
|
:EntryProcessor processor]
|
||||||
[]
|
[]
|
||||||
|
|||||||
Reference in New Issue
Block a user