     @noteWidgets = []
     @noteList.empty()
     
-  asWidget: -> @container[0]
+  asWidget: -> @container
 
 class NoteListItemPresenter extends Presenter
   # Presenter to handle the management of a Note List Item

  
  
  constructor: () ->
    @container = $('<div/>', class: 'noteList')
    
    @noteWidgets = []
    $('<h2>', text: 'My Notes').appendTo @container
    @newButton = $('<input/>', {type: 'submit', value: 'New Note'})
    @newButton.appendTo(@container)
    @noteList = $('<ul/>').appendTo @container
    
  getNoteList: -> @noteList[0]
  getNewNoteButton: -> @newButton[0]
  
  addNote: (noteWidget) ->
    @noteList.append noteWidget

  # NoteListItemDisplay is EXTRA nothing special.
   
  constructor: () ->
    
    @noteLabel = document.createElement "span"

    @container = document.createElement "li"
    @container.appendChild @noteLabel
    
    
    @deleteButton = document.createElement "span"
    @deleteButton.setAttribute 'class', 'delete'
    @deleteButton.innerText = 'x'

    @container.appendChild @deleteButton
    
  getListItem: -> @noteLabel
  
  getDeleteButton: -> @deleteButton
  
  setText: (text) -> @noteLabel.innerText = text
  
  asWidget: -> @container

class NotificationPresenter extends Presenter
  # Simple Notification Window that will listen to 'notify' and display the message
