mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget: Refactoring setOptions loop to remove unnesecary closure / that reference
This commit is contained in:
parent
1d69181746
commit
2f89f35643
9
ui/jquery.ui.widget.js
vendored
9
ui/jquery.ui.widget.js
vendored
@ -270,10 +270,11 @@ $.Widget.prototype = {
|
||||
return this;
|
||||
},
|
||||
_setOptions: function( options ) {
|
||||
var that = this;
|
||||
$.each( options, function( key, value ) {
|
||||
that._setOption( key, value );
|
||||
});
|
||||
var key;
|
||||
|
||||
for ( key in options ) {
|
||||
this._setOption( key, options[ key ] );
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user