HubSpot / messenger

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

extraClasses not working with backbone.js #68

Closed Itrulia closed 10 years ago

Itrulia commented 10 years ago

That is my config:

Messenger().hookBackboneAjax({
    errorMessage: 'Error syncing with the server',
    theme: null,
    showCloseButton: true,
    hideOnNavigate: true,
    extraClasses: 'messenger-fixed messenger-on-left messenger-on-bottom',
    retry: false
});

still I have none of the classes applied to the message.

zackbloom commented 10 years ago

There was an issue with messenger which is fixed in v1.4.1. That being said, options to messenger, rather than a specific message, need to be passed to the Messenger call itself.

Here's an example: http://jsfiddle.net/vF8Bz/2/ And here are the docs: http://github.hubspot.com/messenger/#messenger-object

Itrulia commented 10 years ago

Okay, thank you.