Skip to content

Commit 50e378a

Browse files
committed
Update and rename make_rectangle.coffee to multiply_elements.coffee
1 parent 5e0138c commit 50e378a

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

components/make_rectangle.coffee renamed to components/multiply_elements.coffee

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,23 @@ exports.getComponent = ->
77
return unless event is 'data'
88
# Do something with the packet, then
99
c.outPorts.out.send payload
10-
1110
c.inPorts.add 'type', (event, payload) ->
1211
return unless event is 'data'
1312
# Do something with the packet, then
1413
c.outPorts.out.send payload
15-
1614
c.inPorts.add 'state', (event, payload) ->
1715
return unless event is 'data'
1816
# Do something with the packet, then
1917
c.outPorts.out.send payload
20-
21-
c.inPorts.add ‘width’, (event, payload) ->
18+
c.inPorts.add 'multiplier', (event, payload) ->
2219
return unless event is 'data'
2320
# Do something with the packet, then
2421
c.outPorts.out.send payload
25-
26-
c.inPorts.add ‘height’, (event, payload) ->
27-
return unless event is 'data'
28-
# Do something with the packet, then
29-
c.outPorts.out.send payload
30-
31-
c.inPorts.add ‘color’, (event, payload) ->
22+
c.inPorts.add 'in', (event, payload) ->
3223
return unless event is 'data'
3324
# Do something with the packet, then
3425
c.outPorts.out.send payload
26+
27+
c.outPorts.add 'product'
3528

36-
c.outPorts.add ‘shape’
37-
c
29+
c

0 commit comments

Comments
 (0)