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

  # NoteListItemDisplay is EXTRA nothing special.
   
  constructor: () ->
    @container = $('<li/>')
    @noteLabel = $('<span/>').appendTo @container
    
    deleteParams = 
      class: 'delete'
      text: 'x'
    
    @deleteButton = $('<span/>', deleteParams)
    @deleteButton.appendTo @container
    
  getListItem: -> @noteLabel[0]
  
  getDeleteButton: -> @deleteButton[0]
  
  setText: (text) -> @noteLabel.text text
  
  asWidget: -> @container[0]

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

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