* @private
*/
function Notification( message, options ) {
- var $notification, $notificationTitle, $notificationContent;
+ var $notification, $notificationContent;
$notification = $( '<div class="mw-notification"></div>' )
.data( 'mw.notification', this )
}
if ( options.title ) {
- $notificationTitle = $( '<div class="mw-notification-title"></div>' )
+ $( '<div class="mw-notification-title"></div>' )
.text( options.title )
.appendTo( $notification );
}
$area.hide();
notif.$notification.remove();
} else {
- notif.$notification.slideUp( 'fast', function () {
+ notif.$notification.slideUp( 'fast', function () {
$( this ).remove();
} );
}