mediawiki.htmlform: Remove deprecated $.fn.liveAndTestAtStart
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 25 Jul 2016 11:07:57 +0000 (13:07 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 25 Jul 2016 11:07:57 +0000 (13:07 +0200)
I don't think anybody ever used it anywhere outside of this file.

Change-Id: I19ad0e81c0cb262a03fa10d45eaa951cdcc9848a

RELEASE-NOTES-1.28
resources/src/mediawiki/mediawiki.htmlform.js

index a20bec0..53f83c4 100644 (file)
@@ -75,6 +75,7 @@ changes to languages because of Phabricator reports.
 * The 'UserLoginComplete' hook has a new parameter to differentiate between actual
   login and visiting the login page while already logged in.
 * ResourceLoader::makeLoaderURL() was removed (deprecated since 1.24).
+* $.fn.liveAndTestAtStart was removed (deprecated since 1.24).
 
 == Compatibility ==
 
index 4cc7f09..c3464ea 100644 (file)
                return this.stop( true, true ).fadeOut();
        };
 
-       /**
-        * Bind a function to the jQuery object via live(), and also immediately trigger
-        * the function on the objects with an 'instant' parameter set to true.
-        *
-        * @method liveAndTestAtStart
-        * @deprecated since 1.24 Use .on() and .each() directly.
-        * @param {Function} callback
-        * @param {boolean|jQuery.Event} callback.immediate True when the event is called immediately,
-        *  an event object when triggered from an event.
-        * @chainable
-        * @return {jQuery}
-        */
-       mw.log.deprecate( $.fn, 'liveAndTestAtStart', function ( callback ) {
-               return this
-                       // Can't really migrate to .on() generically, needs knowledge of
-                       // calling code to know the correct selector. Fix callers and
-                       // get rid of this .liveAndTestAtStart() hack.
-                       .live( 'change', callback )
-                       .each( function () {
-                               callback.call( this, true );
-                       } );
-       } );
-
        function enhance( $root ) {
                var $matrixTooltips, $autocomplete,
                        // cache the separator to avoid object creation on each keypress