jquery.toaster icon indicating copy to clipboard operation
jquery.toaster copied to clipboard

Fix string only parameter in $.toaster call

Open isaac-jordan opened this issue 10 years ago • 0 comments

The $.toaster function only checks for whether the incoming parameter is an object. In the Usage section of the README it mentions that a string can be passed to use default values. I have implemented this small change.

Section from README: /*

  • ...or pass only a string; it will be treated as the intended message,
  • and 'priority' will default to 'success', and 'title' to 'Notice'. */ $.toaster('Whatever you did worked!');

isaac-jordan avatar Aug 11 '15 10:08 isaac-jordan