Skip to content

Commit

Permalink
Fix issue with disabling stopOnFocus feature (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
apvarun authored Jun 29, 2019
1 parent 4c03949 commit 92bef29
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All the changes made to toastify-js library.

## [1.6.1] - 2019-06-29

* Bugfix: Disabling `stopOnFocus`

## [1.6.0] - 2019-06-29

* **Deprecation Warning**: Migrating from `positionLeft` property to `position`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)
![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)

[![toastify-js](https://img.shields.io/badge/toastify--js-1.6.0-brightgreen.svg)](https://www.npmjs.com/package/toastify-js)
[![toastify-js](https://img.shields.io/badge/toastify--js-1.6.1-brightgreen.svg)](https://www.npmjs.com/package/toastify-js)

Toastify is a lightweight, vanilla JS toast notification library.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toastify-js",
"version": "1.6.0",
"version": "1.6.1",
"description":
"Toastify is a lightweight, vanilla JS toast notification library.",
"main": "./src/toastify.js",
Expand Down
2 changes: 1 addition & 1 deletion src/toastify.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Toastify js 1.6.0
* Toastify js 1.6.1
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
Expand Down
6 changes: 3 additions & 3 deletions src/toastify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Toastify js 1.6.0
* Toastify js 1.6.1
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
Expand All @@ -18,7 +18,7 @@
return new Toastify.lib.init(options);
},
// Library version
version = "1.6.0";
version = "1.6.1";

// Defining the prototype of the object
Toastify.lib = Toastify.prototype = {
Expand Down Expand Up @@ -52,7 +52,7 @@
this.options.backgroundColor = options.backgroundColor; // toast background color
this.options.avatar = options.avatar || ""; // img element src - url or a path
this.options.className = options.className || ""; // additional class names for the toast
this.options.stopOnFocus = options.stopOnFocus || true; // stop timeout on focus
this.options.stopOnFocus = options.stopOnFocus === undefined? true: options.stopOnFocus; // stop timeout on focus

// Returning the current object for chaining functions
return this;
Expand Down

0 comments on commit 92bef29

Please sign in to comment.