jpillora/notifyjs — pull request #15 by wongyouth (2014-04-12 05:26:13+00:00)
Title: To compatible with turbolinks

When [Turbolinks](https://github.com/rails/turbolinks) is enabled and when a link is clicked, `Turbolinks` will fetch new page and replace current page's body content with new page's one. This will cause `

` disappeared from DOM, and notify message will never be showed any more.

This patch will add a method to clear globalAnchors to be compatible with javascript library like `Turbolinks`.
With `Turbolinks` it may be invoked like

```
$(document).on("page:load", function(){
$.notify.clearAnchors();
});

```