Skip to content
Permalink
Browse files

Removed some unused variables.

  • Loading branch information...
scottgonzalez committed Apr 28, 2012
1 parent c974d0f commit 57d18cd6b7a3d5a6a1b3436481a2fbe1d835eb29
Showing with 4 additions and 18 deletions.
  1. +1 −3 grunt.js
  2. +1 −4 ui/jquery.effects.scale.js
  3. +1 −2 ui/jquery.effects.slide.js
  4. +1 −4 ui/jquery.ui.position.js
  5. +0 −5 ui/jquery.ui.tabs.js
@@ -5,8 +5,6 @@ var // modules
fs = require( "fs" ),
path = require( "path" ),
request = require( "request" ),
util = require( "util" ),
inspect = util.inspect,

// files
coreFiles = [
@@ -340,7 +338,7 @@ grunt.initConfig({
grunt.registerTask( "testswarm", function( commit, authToken ) {
var testswarm = require( "testswarm" );
var testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/";
require( "testswarm" )( {
testswarm({
url: "http://swarm.jquery.org/api.php?",
pollInterval: 2000,
done: this.async()
@@ -267,10 +267,7 @@ $.effects.effect.size = function( o, done ) {
$.each([ "top", "left" ], function( idx, pos ) {
el.css( pos, function( _, str ) {
var val = parseInt( str, 10 ),
toRef = idx ? el.to.left : el.to.top,
delta = idx ? el.to.outerWidth - el.from.outerWidth: el.to.outerHeight - el.from.outerHeight,
same = origin[ idx ] === pos,
mid = origin[ idx ] === "middle" || origin[ idx ] === "center";
toRef = idx ? el.to.left : el.to.top;

// if original was "auto", recalculate the new value from wrapper
if ( str === "auto" ) {
@@ -23,8 +23,7 @@ $.effects.effect.slide = function( o, done ) {
ref = (direction === "up" || direction === "down") ? "top" : "left",
positiveMotion = (direction === "up" || direction === "left"),
distance,
animation = {},
size;
animation = {};

// Adjust
$.effects.save( el, props );
@@ -286,8 +286,7 @@ $.ui.position = {
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
overLeft = withinOffset - collisionPosLeft,
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
newOverRight,
newOverLeft;
newOverRight;

// element is wider than within
if ( data.collisionWidth > outerWidth ) {
@@ -324,7 +323,6 @@ $.ui.position = {
collisionPosTop = position.top - data.collisionPosition.marginTop,
overTop = withinOffset - collisionPosTop,
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
newOverTop,
newOverBottom;

// element is taller than within
@@ -365,7 +363,6 @@ $.ui.position = {
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
overLeft = collisionPosLeft - offsetLeft,
overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
left = data.my[ 0 ] === "left",
myOffset = data.my[ 0 ] === "left" ?
-data.elemWidth :
data.my[ 0 ] === "right" ?
@@ -167,7 +167,6 @@ $.widget( "ui.tabs", {

refresh: function() {
var next,
that = this,
options = this.options,
lis = this.list.children( ":has(a[href])" );

@@ -362,7 +361,6 @@ $.widget( "ui.tabs", {
// handles show/hide for selecting tabs
_toggle: function( event, eventData ) {
var that = this,
options = that.options,
toShow = eventData.newPanel,
toHide = eventData.oldPanel;

@@ -434,8 +432,6 @@ $.widget( "ui.tabs", {
},

_destroy: function() {
var o = this.options;

if ( this.xhr ) {
this.xhr.abort();
}
@@ -517,7 +513,6 @@ $.widget( "ui.tabs", {
load: function( index, event ) {
index = this._getIndex( index );
var that = this,
options = this.options,
anchor = this.anchors.eq( index ),
panel = that._getPanelForTab( anchor ),
eventData = {

0 comments on commit 57d18cd

Please sign in to comment.
You can’t perform that action at this time.