diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-28 17:36:38 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-28 17:36:38 -0400 |
commit | 57d18cd6b7a3d5a6a1b3436481a2fbe1d835eb29 (patch) | |
tree | b7ba23b0af4579e796ca361fc3bfcea54064dcfc | |
parent | c974d0fc69849d9e7854a532da01f00587d04527 (diff) | |
download | jquery-ui-57d18cd6b7a3d5a6a1b3436481a2fbe1d835eb29.tar.gz jquery-ui-57d18cd6b7a3d5a6a1b3436481a2fbe1d835eb29.zip |
Removed some unused variables.
-rw-r--r-- | grunt.js | 4 | ||||
-rw-r--r-- | ui/jquery.effects.scale.js | 5 | ||||
-rw-r--r-- | ui/jquery.effects.slide.js | 3 | ||||
-rw-r--r-- | ui/jquery.ui.position.js | 5 | ||||
-rw-r--r-- | ui/jquery.ui.tabs.js | 5 |
5 files changed, 4 insertions, 18 deletions
@@ -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() diff --git a/ui/jquery.effects.scale.js b/ui/jquery.effects.scale.js index 1eedb44eb..5352bde77 100644 --- a/ui/jquery.effects.scale.js +++ b/ui/jquery.effects.scale.js @@ -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" ) { diff --git a/ui/jquery.effects.slide.js b/ui/jquery.effects.slide.js index e57a21264..ae25a187e 100644 --- a/ui/jquery.effects.slide.js +++ b/ui/jquery.effects.slide.js @@ -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 ); diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index cb82cd4f1..bd7bfb015 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -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" ? diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index e42bcb1a2..026c50993 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -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 = { |