Skip to content

Commit

Permalink
Fixes #6979 - Several components are leaking variables into the globa…
Browse files Browse the repository at this point in the history
…l scope.
  • Loading branch information
felix9 authored and scottgonzalez committed Mar 29, 2012
1 parent c45911c commit 6fb584e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/jquery.effects.core.js
Expand Up @@ -419,7 +419,7 @@ $.extend($.effects, {
setTransition: function(element, list, factor, value) {
value = value || {};
$.each(list, function(i, x){
unit = element.cssUnit(x);
var unit = element.cssUnit(x);
if (unit[0] > 0) value[x] = unit[0] * factor + unit[1];
});
return value;
Expand Down
4 changes: 2 additions & 2 deletions ui/jquery.effects.pulsate.js
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ui/jquery.effects.scale.js
Expand Up @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion ui/jquery.ui.autocomplete.js
Expand Up @@ -594,7 +594,7 @@ $.widget("ui.menu", {
}

var base = this.active.offset().top,
height = this.element.height();
height = this.element.height(),
result = this.element.children(".ui-menu-item").filter(function() {
var close = $(this).offset().top - base + height - $(this).height();
// TODO improve approximation
Expand Down
1 change: 0 additions & 1 deletion ui/jquery.ui.tabs.js
Expand Up @@ -733,7 +733,6 @@ $.extend( $.ui.tabs.prototype, {
}
}
: function( e ) {
t = o.selected;
rotate();
});

Expand Down

0 comments on commit 6fb584e

Please sign in to comment.