Skip to content

Commit

Permalink
Release 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxandxss committed Jan 27, 2016
1 parent eff510c commit d0ceefa
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 1.7.0

- `toastr` service has an `active()` method to get all the opened toasts.

## Version 1.6.0

- onTap callback receives the whole toast as the first parameter.
Expand Down Expand Up @@ -43,7 +47,7 @@

- Support for a progress bar.
- A config option to change the path of the templates.

**BREAKING CHANGE:**

If you were using a custom template using the default path, it changed from:
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-toastr",
"version": "1.6.0",
"version": "1.7.0",
"authors": [
"Jesus Rodriguez <[email protected]>"
],
Expand Down
5 changes: 5 additions & 0 deletions dist/angular-toastr.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
var containerDefer = $q.defer();

var toast = {
active: active,
clear: clear,
error: error,
info: info,
Expand All @@ -28,6 +29,10 @@
return toast;

/* Public API */
function active() {
return toasts.length;
}

function clear(toast) {
// Bit of a hack, I will remove this soon with a BC
if (arguments.length === 1 && !toast) { return; }
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.

5 changes: 5 additions & 0 deletions dist/angular-toastr.tpls.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
var containerDefer = $q.defer();

var toast = {
active: active,
clear: clear,
error: error,
info: info,
Expand All @@ -28,6 +29,10 @@
return toast;

/* Public API */
function active() {
return toasts.length;
}

function clear(toast) {
// Bit of a hack, I will remove this soon with a BC
if (arguments.length === 1 && !toast) { return; }
Expand Down
Loading

0 comments on commit d0ceefa

Please sign in to comment.