Skip to content

Commit 729cdfe

Browse files
committed
Merge pull request #262 from SBero/develop
Confirmed. Issue #261: Fixed an issue in the demo, where additional operations for ...
2 parents efa6bf6 + bf1f038 commit 729cdfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

demo.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ <h2>Links</h2>
287287

288288
var $toast = toastr[shortCutFunction](msg, title); // Wire up an event handler to a button in the toast, if it exists
289289
$toastlast = $toast;
290+
291+
if(typeof $toast === 'undefined'){
292+
return;
293+
}
294+
290295
if ($toast.find('#okBtn').length) {
291296
$toast.delegate('#okBtn', 'click', function () {
292297
alert('you clicked me. i was toast #' + toastIndex + '. goodbye!');

0 commit comments

Comments
 (0)