8000 Bugfixes by kenhkan · Pull Request #43 · noflo/noflo · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"shell": "=0.0.9",
"cli": ">=0.3.7",
"daemon": "0.4.x",
"glob": ">=2.0.7"
"glob": ">=2.0.7",
"underscore": ">=1.3.3"
},
"devDependencies": {
"nodeunit" : ">=0.6.0",
Expand Down
2 changes: 2 additions & 0 deletions src/components/ReadGroup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ class ReadGroup extends noflo.Component
@outPorts.out.send @groups.join ':'
@inPorts.in.on 'endgroup', =>
@groups.pop()
@inPorts.in.on 'disconnect', =>
@outPorts.out.disconnect()

exports.getComponent = -> new ReadGroup
4 changes: 4 additions & 0 deletions src/components/RemoveProperty.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
noflo = require "noflo"
_ = require 'underscore'

class RemoveProperty extends noflo.Component
constructor: ->
Expand All @@ -22,6 +23,9 @@ class RemoveProperty extends noflo.Component
@outPorts.out.disconnect()

removeProperties: (object) ->
# Clone the object so that the original isn't changed
object = _.clone(object)

for property in @properties
delete object[property]
return object
Expand Down
2 changes: 1 addition & 1 deletion src/components/Repeat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Repeat extends noflo.Component
@inPorts.in.on "data", (data) =>
@outPorts.out.send data
@inPorts.in.on "endgroup", =>
@outPorts.out.endGroup
@outPorts.out.endGroup()
@inPorts.in.on "disconnect", =>
@outPorts.out.disconnect()

Expand Down
0