Skip to content

Sticky messages

Choose a tag to compare

@poteto poteto released this 14 Mar 13:22
· 383 commits to master since this release

You can now make a message sticky by setting sticky to true in the flash message options. For example:

Ember.get(this, 'flashes').add({
  message : 'Brown and sticky',
  type    : 'joke',
  sticky  : true
});

addMessage is now deprecated in favour of add, and will be removed in 1.0.0.

Changelog
  • Added deprecation warning for addMessage
  • Reduced testTimerDuration in flash object test
  • Fixed a bug where sometimes flash messages would not be removed