* HTMLForm enhancements:
* Add a dynamic max length to the reason field of SelectAndOther.
*/
-( function ( mw, $ ) {
+( function () {
// cache the separator to avoid object creation on each keypress
var colonSeparator = mw.message( 'colon-separator' ).text();
// cache the current selection to avoid expensive lookup
currentValReasonList = $reasonList.val();
- $reasonList.change( function () {
+ $reasonList.on( 'change', function () {
currentValReasonList = $reasonList.val();
} );
} );
} );
-}( mediaWiki, jQuery ) );
+}() );