mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fixed #6979 - Several components are leaking variables into the global scope
This commit is contained in:
parent
c37637ee99
commit
9626484dd5
4
ui/jquery.effects.pulsate.js
vendored
4
ui/jquery.effects.pulsate.js
vendored
@ -15,8 +15,8 @@
|
||||
$.effects.pulsate = function(o) {
|
||||
return this.queue(function() {
|
||||
var elem = $(this),
|
||||
mode = $.effects.setMode(elem, o.options.mode || 'show');
|
||||
times = ((o.options.times || 5) * 2) - 1;
|
||||
mode = $.effects.setMode(elem, o.options.mode || 'show'),
|
||||
times = ((o.options.times || 5) * 2) - 1,
|
||||
duration = o.duration ? o.duration / 2 : $.fx.speeds._default / 2,
|
||||
isVisible = elem.is(':visible'),
|
||||
animateTo = 0;
|
||||
|
2
ui/jquery.effects.scale.js
vendored
2
ui/jquery.effects.scale.js
vendored
@ -140,7 +140,7 @@ $.effects.size = function(o) {
|
||||
hProps = hProps.concat(['marginLeft','marginRight']); // Add margins
|
||||
props2 = props.concat(vProps).concat(hProps); // Concat
|
||||
el.find("*[width]").each(function(){
|
||||
child = $(this);
|
||||
var child = $(this);
|
||||
if (restore) $.effects.save(child, props2);
|
||||
var c_original = {height: child.height(), width: child.width()}; // Save original
|
||||
child.from = {height: c_original.height * factor.from.y, width: c_original.width * factor.from.x};
|
||||
|
2
ui/jquery.ui.accordion.js
vendored
2
ui/jquery.ui.accordion.js
vendored
@ -542,7 +542,7 @@ if ( $.uiBackCompat !== false ) {
|
||||
if ( this.options.navigation ) {
|
||||
var self = this,
|
||||
headers = this.element.find( this.options.header ),
|
||||
content = headers.next();
|
||||
content = headers.next(),
|
||||
current = headers.add( content )
|
||||
.find( "a" )
|
||||
.filter( this.options.navigationFilter )
|
||||
|
2
ui/jquery.ui.slider.js
vendored
2
ui/jquery.ui.slider.js
vendored
@ -592,7 +592,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
||||
return this._valueMax();
|
||||
}
|
||||
var step = ( this.options.step > 0 ) ? this.options.step : 1,
|
||||
valModStep = (val - this._valueMin()) % step;
|
||||
valModStep = (val - this._valueMin()) % step,
|
||||
alignValue = val - valModStep;
|
||||
|
||||
if ( Math.abs(valModStep) * 2 >= step ) {
|
||||
|
Loading…
Reference in New Issue
Block a user