estum / growlyflash

Growl-styled flash messages for Ruby on Rails and Bootstrap
MIT License
58 stars 34 forks source link

deleting window.flashes after shown once to prevent duplicates appearing when using turbolinks #6

Closed coxy closed 10 years ago

coxy commented 10 years ago

Hi, this fixes an issue I was having with this plugin + turbolinks. Essentially since the page isn't reloaded, window.flashes remains set and the flash was displaying on all subsequent pages. Deleting the window.flashes after the first call fixed it for me. Thought you may want to include it in case others are experiencing this issue.