-( function ( mw, $ ) {
+( function () {
/**
* Prevent the closing of a window with a confirm message (the onbeforeunload event seems to
* work in most browsers.)
showEventName += '.' + options.namespace;
}
- if ( $.isFunction( options.message ) ) {
+ if ( typeof options.message === 'function' ) {
message = options.message();
} else {
message = options.message;
}
};
};
-}( mediaWiki, jQuery ) );
+}() );