Skip to content

Instantly share code, notes, and snippets.

@atomiomi
Created November 29, 2016 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomiomi/17e7ad13b1231f6de40ac46ab91d5d4e to your computer and use it in GitHub Desktop.
Save atomiomi/17e7ad13b1231f6de40ac46ab91d5d4e to your computer and use it in GitHub Desktop.
addInput: (Component) =>
@inputs.push(Component) unless Component in @inputs
removeInput: (Component) =>
index = @inputs.indexOf(Component)
@inputs.splice(index, 1) if index >= 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment