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:
Jörn Zaefferer
2015-06-30 17:01:29 +02:00
parent f33690b8a5
commit bc4223806a
2 changed files with 7 additions and 13 deletions

View File

@@ -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 ],