Ricordisamoa has uploaded a new change for review. https://gerrit.wikimedia.org/r/281226
Change subject: TextInputWidget: remove isValid() method, deprecated since v0.12.3 ...................................................................... TextInputWidget: remove isValid() method, deprecated since v0.12.3 Change-Id: Ic80483366abbf47140b8073935ff2a697271aec9 --- M src/widgets/TextInputWidget.js 1 file changed, 0 insertions(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/26/281226/1 diff --git a/src/widgets/TextInputWidget.js b/src/widgets/TextInputWidget.js index a9e5fee..70325a9 100644 --- a/src/widgets/TextInputWidget.js +++ b/src/widgets/TextInputWidget.js @@ -682,30 +682,6 @@ }; /** - * Check if a value is valid. - * - * This method returns a promise that resolves with a boolean `true` if the current value is - * considered valid according to the supplied {@link #validate validation pattern}. - * - * @deprecated since v0.12.3 - * @return {jQuery.Promise} A promise that resolves to a boolean `true` if the value is valid. - */ -OO.ui.TextInputWidget.prototype.isValid = function () { - var result; - - if ( this.validate instanceof Function ) { - result = this.validate( this.getValue() ); - if ( result && $.isFunction( result.promise ) ) { - return result.promise(); - } else { - return $.Deferred().resolve( !!result ).promise(); - } - } else { - return $.Deferred().resolve( !!this.getValue().match( this.validate ) ).promise(); - } -}; - -/** * Get the validity of current value. * * This method returns a promise that resolves if the value is valid and rejects if -- To view, visit https://gerrit.wikimedia.org/r/281226 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic80483366abbf47140b8073935ff2a697271aec9 Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits