Permalink
Browse files

Made toastr fade away on hover-off only if either extendedTimeOut or …

…timeOut are > 0
  • Loading branch information...
1 parent 3c16794 commit ceae34319551b6a1358ee08a6b5d5d2c62d739b6 @johnpapa johnpapa committed Jul 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 toastr.js
View
@@ -108,7 +108,7 @@
}
var delayedFadeAway = function() {
- if (options.extendedTimeOut > 0) {
+ if (options.timeOut > 0 || options.extendedTimeOut > 0) {
intervalId = setTimeout(fadeAway, options.extendedTimeOut)
}
}

0 comments on commit ceae343

Please sign in to comment.