Skip to content

Commit 43b917d

Browse files
committed
Merge pull request #47 from bpegirk/patch-2
Update jquery.jgrowl.js
2 parents fdd6914 + 0a58e72 commit 43b917d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jquery.jgrowl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,11 @@
359359
startup: function(e) {
360360
this.element = $(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');
361361
this.interval = setInterval( function() {
362-
$(e).data('jGrowl.instance').update();
362+
// some error in chage ^^
363+
var instance = $(e).data('jGrowl.instance');
364+
if (undefined != instance) {
365+
instance.update();
366+
}
363367
}, parseInt(this.defaults.check, 10));
364368
},
365369

0 commit comments

Comments
 (0)