Skip to content

Commit

Permalink
chore(release): release 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxandxss committed Mar 13, 2014
1 parent ab76b04 commit 562a789
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.2.4

- Fixes #2 where a toast could remain open for all eternity.

## Version 0.2.0

- 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.
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "angular-toastr",
"version": "0.2.3",
"version": "0.2.4",
"main": [
"./dist/angular-toastr.js",
"./dist/angular-toastr.min.css"
"./dist/angular-toastr.css"
],
"ignore": [
"config",
Expand Down
5 changes: 2 additions & 3 deletions dist/angular-toastr.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,12 @@ angular.module('toastr', [])
function remove(toastIndex) {
var toast = findToast(toastIndex);

var ind = toasts.indexOf(toast);

if (toast) { // Avoid clicking when fading out

$animate.leave(toast.el, function() {
toast.scope.$destroy();
toasts.splice(ind, 1);
if (container && container.children().length === 0) {
toasts = [];
container.remove();
container = null;
containerDefer = $q.defer();
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-toastr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-toastr",
"version": "0.2.3",
"version": "0.2.4",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-less": "~0.9.0",
Expand Down

0 comments on commit 562a789

Please sign in to comment.