mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
Core: Remove unused removeAttrs method
jQuery Core supports removing space-separated attributes since 1.7, and its not used in the plugin anyway. Fixes #1124
This commit is contained in:
11
src/core.js
11
src/core.js
@@ -107,16 +107,7 @@ $.extend($.fn, {
|
||||
}
|
||||
return valid;
|
||||
},
|
||||
// attributes: space separated list of attributes to retrieve and remove
|
||||
removeAttrs: function( attributes ) {
|
||||
var result = {},
|
||||
$element = this;
|
||||
$.each( attributes.split( /\s/ ), function( index, value ) {
|
||||
result[ value ] = $element.attr( value );
|
||||
$element.removeAttr( value );
|
||||
});
|
||||
return result;
|
||||
},
|
||||
|
||||
// http://jqueryvalidation.org/rules/
|
||||
rules: function( command, argument ) {
|
||||
var element = this[ 0 ],
|
||||
|
||||
Reference in New Issue
Block a user