Skip to content

Commit 562a789

Browse files
committed
chore(release): release 0.2.4
1 parent ab76b04 commit 562a789

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 0.2.4
4+
5+
- Fixes #2 where a toast could remain open for all eternity.
6+
37
## Version 0.2.0
48

59
- You can make an sticky toast if you set the `timeOut` to 0. If you also set `extendedTimeOut` to 0 the sticky won't go away until you click on them.

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "angular-toastr",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"main": [
55
"./dist/angular-toastr.js",
6-
"./dist/angular-toastr.min.css"
6+
"./dist/angular-toastr.css"
77
],
88
"ignore": [
99
"config",

dist/angular-toastr.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,12 @@ angular.module('toastr', [])
204204
function remove(toastIndex) {
205205
var toast = findToast(toastIndex);
206206

207-
var ind = toasts.indexOf(toast);
208-
209207
if (toast) { // Avoid clicking when fading out
208+
210209
$animate.leave(toast.el, function() {
211210
toast.scope.$destroy();
212-
toasts.splice(ind, 1);
213211
if (container && container.children().length === 0) {
212+
toasts = [];
214213
container.remove();
215214
container = null;
216215
containerDefer = $q.defer();

dist/angular-toastr.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-toastr",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"devDependencies": {
55
"grunt": "~0.4.2",
66
"grunt-contrib-less": "~0.9.0",

0 commit comments

Comments
 (0)