Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Conversation

@StijnVrolijk
Copy link
Contributor

Usage

  var successFlash = Flash.add('My successful flash message', 'success');
  var failedFlash = Flash.add('This flash failed', 'error');

  Flash.remove(successFlash);

class Flash

add: (message, type) ->
alertId = Math.floor(Date.now() / 1000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waarom / 1000? het kan toch geen kwaad als da in milliseconde is? Integendeel: de kans op duplicate id's is kleiner!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, f5b9e79

@WouterSioen
Copy link
Contributor

🚀

@tijsverkoyen tijsverkoyen merged commit 0c8b5be into sumocoders:master Oct 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants