-
-
Save lightsofapollo/0f45edff83552a888797 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
function MessageController() { | |
pubsubthingy.on('MagicStoreThingy', 'delete messages', this.ondelete.bind(this)); | |
} | |
MessageController.prototype = { | |
ondelete: function(messages) { | |
// how do we ask the view for the messages? | |
var op = mailapi.deleteMessages(messages); | |
} | |
}; | |
// toolbar | |
function MessageListCard() { | |
this.list = new List(....); | |
this.magicdeletebutton.onclick = function() { | |
pubsubthingy.emit('delete messages', this.list.getMessages()); | |
}.bind(this) | |
} | |
// view | |
function List() { | |
} | |
List.prototype = { | |
getCheckedMessages: function() { | |
// who call this? | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment