HubSpot / messenger

Growl-style alerts and messages for your app. #hubspot-open-source
http://github.hubspot.com/messenger/
MIT License
4.02k stars 405 forks source link

[Proposal] Allow further config default options #38

Closed duellsy closed 11 years ago

duellsy commented 11 years ago

When I try and set the default option for hiding the message, it seems to have no effect.

I'd like to be able to do something like this:

Messenger.options = {
    hideAfter: 2,
    showCloseButton: true
}
zackbloom commented 11 years ago

Sorry it took me so long to get to this, I just saw it now.

Messenger.options = {
    messageDefaults: {
        hideAfter: 2
    }
}

should work. Please open an issue if it doesn't.

duellsy commented 11 years ago

Ahhh champ, thanks.