Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Change notification limit behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
antnieszka committed Jan 9, 2019
1 parent 1ce675d commit e3d3617
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/angular-ui-notification.min.js

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

3 changes: 2 additions & 1 deletion dist/angular-ui-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ angular.module('ui-notification').provider('Notification', function () {
lastPosition[element._positionY + element._positionX] = top + elHeight;

if (options.maxCount > 0 && messageElements.length > options.maxCount && i === 0) {
element.scope().kill(true);
element.addClass('killed');
continue;
}

j++;
Expand Down
3 changes: 2 additions & 1 deletion src/angular-ui-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ angular.module('ui-notification').provider('Notification', function () {
lastPosition[element._positionY + element._positionX] = top + elHeight;

if (options.maxCount > 0 && messageElements.length > options.maxCount && i === 0) {
element.scope().kill(true);
element.addClass('killed');
continue;
}

j++;
Expand Down

0 comments on commit e3d3617

Please sign in to comment.