osmo: Allow to have a CtrlTrap filter on the message sent as well
This is in preparation for being able to parse notifications.
This commit is contained in:
parent
11bb698a0b
commit
cb55eb5dcf
|
@ -92,10 +92,14 @@ CtrlCmd subclass: CtrlTrap [
|
|||
^ self subclassResponsibility
|
||||
]
|
||||
|
||||
CtrlTrap class >> isFor: aPath value: aValue [
|
||||
^self isFor: aPath
|
||||
]
|
||||
|
||||
CtrlTrap class >> findTrapFor: nodes [
|
||||
<category: 'creation'>
|
||||
CtrlTrap allSubclassesDo: [:trap |
|
||||
(trap isFor: nodes third)
|
||||
(trap isFor: nodes third value: nodes fourth)
|
||||
ifTrue: [^trap with: nodes]].
|
||||
^ CtrlTrap new
|
||||
]
|
||||
|
|
Reference in New Issue