Skip to content

Instantly share code, notes, and snippets.

@ryanbrubaker
Created June 5, 2012 03:13
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 ryanbrubaker/2872348 to your computer and use it in GitHub Desktop.
Save ryanbrubaker/2872348 to your computer and use it in GitHub Desktop.
Initialization of MorseCode demo
init = ->
decoder = new MorseDecoder
communicationLine = new CommunicationLine(
'decoder': decoder)
straightKey = new StraightKeyInput(
'el': $('#straight-key-div'),
'model': communicationLine)
communicationLineView = new CommunicationLineView(
'el': $('#communication-line-div'),
'model': communicationLine)
decoderView = new DecoderView(
'el': $('messageBoxDiv'),
'model': decoder)
drawSignalLine()
$(document).ready init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment