Skip to content

Commit 47071be

Browse files
committed
Merge pull request #19 from snrlx/notDisappearingMessages
Fix for not disappearing messages
2 parents 2f89d45 + 135d4d5 commit 47071be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

angular-notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','
3030

3131
var templateElement = $compile(template)(scope);
3232
templateElement.bind('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function(e){
33-
if (e.propertyName === 'opacity' ||
33+
if (e.propertyName === 'opacity' || e.currentTarget.style.opacity === 0 ||
3434
(e.originalEvent && e.originalEvent.propertyName === 'opacity')){
3535

3636
templateElement.remove();

dist/angular-notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','
3030

3131
var templateElement = $compile(template)(scope);
3232
templateElement.bind('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function(e){
33-
if (e.propertyName === 'opacity' ||
33+
if (e.propertyName === 'opacity' || e.currentTarget.style.opacity === 0 ||
3434
(e.originalEvent && e.originalEvent.propertyName === 'opacity')){
3535

3636
templateElement.remove();

dist/angular-notify.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.

0 commit comments

Comments
 (0)