Skip to content

Commit 0595712

Browse files
committed
Fix inconsistent click handler args + update docs
1 parent c42efee commit 0595712

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ $.jGrowl("A message with a beforeOpen callback and a different opening animation
7070
| open | function(e,m,o) {} | Callback to be used when a new notification is opened. This callback receives the notification's DOM context, the notifications message and its option object. |
7171
| beforeClose | function(e,m,o) {} | Callback to be used before a new notification is closed. This callback receives the notification's DOM context, the notifications message and its option object. |
7272
| close | function(e,m,o) {} | Callback to be used when a new notification is closed. This callback receives the notification's DOM context, the notifications message and its option object. |
73+
| click | function(e,m,o) {} | Callback to be used when a notification is clicked. This callback receives the notification's DOM context, the notifications message and its option object. |
7374
| animateOpen | { opacity: 'show' } | The animation properties to use when opening a new notification (default to fadeOut). |
7475
| animateClose | { opacity: 'hide' } | The animation properties to use when closing a new notification (defaults to fadeIn). |

jquery.jgrowl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
}).bind('jGrowl.afterOpen', function() {
300300
o.afterOpen.apply( notification , [notification,message,o,self.element] );
301301
}).bind('click', function() {
302-
o.click.apply( notification, [notification.message,o,self.element] );
302+
o.click.apply( notification, [notification,message,o,self.element] );
303303
}).bind('jGrowl.beforeClose', function() {
304304
if ( o.beforeClose.apply( notification , [notification,message,o,self.element] ) !== false )
305305
$(this).trigger('jGrowl.close');

0 commit comments

Comments
 (0)