Skip to content

Commit

Permalink
Build: Update devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Oct 21, 2019
1 parent 7349ec8 commit 2769d8e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions jquery.color.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ each( spaces, function( spaceName, space ) {

// Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
function( i, name ) {
function( _i, name ) {
class2type[ "[object " + name + "]" ] = name.toLowerCase();
} );

Expand Down Expand Up @@ -199,7 +199,7 @@ function stringParse( string ) {

string = string.toLowerCase();

each( stringParsers, function( i, parser ) {
each( stringParsers, function( _i, parser ) {
var parsed,
match = parser.re.exec( string ),
values = match && parser.parse( match ),
Expand Down Expand Up @@ -259,21 +259,21 @@ color.fn = jQuery.extend( color.prototype, {
}

if ( type === "array" ) {
each( spaces.rgba.props, function( key, prop ) {
each( spaces.rgba.props, function( _key, prop ) {
rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
} );
return this;
}

if ( type === "object" ) {
if ( red instanceof color ) {
each( spaces, function( spaceName, space ) {
each( spaces, function( _spaceName, space ) {
if ( red[ space.cache ] ) {
inst[ space.cache ] = red[ space.cache ].slice();
}
} );
} else {
each( spaces, function( spaceName, space ) {
each( spaces, function( _spaceName, space ) {
var cache = space.cache;
each( space.props, function( key, prop ) {

Expand Down Expand Up @@ -350,7 +350,7 @@ color.fn = jQuery.extend( color.prototype, {
result = start.slice();

end = end[ space.cache ];
each( space.props, function( key, prop ) {
each( space.props, function( _key, prop ) {
var index = prop.idx,
startValue = start[ index ],
endValue = end[ index ],
Expand Down Expand Up @@ -607,7 +607,7 @@ each( spaces, function( spaceName, space ) {
// accept a space separated string of properties
color.hook = function( hook ) {
var hooks = hook.split( " " );
each( hooks, function( i, hook ) {
each( hooks, function( _i, hook ) {
jQuery.cssHooks[ hook ] = {
set: function( elem, value ) {
var parsed;
Expand Down Expand Up @@ -637,7 +637,7 @@ jQuery.cssHooks.borderColor = {
expand: function( value ) {
var expanded = {};

each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
each( [ "Top", "Right", "Bottom", "Left" ], function( _i, part ) {
expanded[ "border" + part + "Color" ] = value;
} );
return expanded;
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@
"jquery": ">=1.11.0"
},
"devDependencies": {
"browserstack-runner": "0.7.0",
"commitplease": "2.7.10",
"eslint-config-jquery": "1.0.1",
"grunt": "1.0.1",
"browserstack-runner": "0.9.0",
"commitplease": "3.2.0",
"eslint-config-jquery": "2.0.0",
"grunt": "1.0.4",
"grunt-bowercopy": "1.2.4",
"grunt-cli": "1.2.0",
"grunt-cli": "1.3.2",
"grunt-compare-size": "0.4.2",
"grunt-contrib-concat": "1.0.1",
"grunt-contrib-qunit": "2.0.0",
"grunt-contrib-uglify": "3.3.0",
"grunt-eslint": "20.1.0",
"grunt-contrib-qunit": "3.1.0",
"grunt-contrib-uglify": "4.0.1",
"grunt-eslint": "22.0.0",
"grunt-git-authors": "3.2.0",
"load-grunt-tasks": "3.5.2",
"load-grunt-tasks": "5.1.0",
"testswarm": "1.1.0"
},
"commitplease": {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ QUnit.test( "red green blue alpha Setters", function( assert ) {
color = jQuery.Color( [ 0, 0, 0, 0 ] );

assert.expect( 4 * props.length );
jQuery.each( props, function( i, fn ) {
jQuery.each( props, function( _i, fn ) {
var tv = fn === "alpha" ? 0.5 : 255,
set = color[ fn ]( tv ),
clamp = fn === "alpha" ? 1 : 255,
Expand Down Expand Up @@ -549,7 +549,7 @@ QUnit.test( "hue saturation lightness alpha Setters", function( assert ) {
var props = "hue saturation lightness alpha".split( " " ),
color = jQuery.Color( [ 0, 0, 0, 0 ] );
assert.expect( 4 * props.length );
jQuery.each( props, function( i, fn ) {
jQuery.each( props, function( _i, fn ) {
var tv = fn === "hue" ? 359 : 0.5,
set = color[ fn ]( tv ),
clamp = fn === "hue" ? -360 : 1,
Expand Down

0 comments on commit 2769d8e

Please sign in to comment.