Created
November 29, 2016 08:30
-
-
Save atomiomi/17e7ad13b1231f6de40ac46ab91d5d4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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