Skip to content

Commit f67b69a

Browse files
committed
Effects: Lint fixes.
1 parent 155e333 commit f67b69a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

grunt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ grunt.initConfig({
289289
lint: {
290290
ui: grunt.file.expandFiles( "ui/*.js" ).filter(function( file ) {
291291
// TODO remove items from this list once rewritten
292-
return !( /(effects.core|mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
292+
return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
293293
}),
294294
grunt: "grunt.js",
295295
tests: "tests/unit/**/*.js"

ui/jquery.effects.core.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,27 @@ function getRGB(color) {
5454
}
5555

5656
// Look for rgb(num,num,num)
57-
if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) {
57+
if ( (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) ) {
5858
return [parseInt(result[1],10), parseInt(result[2],10), parseInt(result[3],10)];
5959
}
6060

6161
// Look for rgb(num%,num%,num%)
62-
if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) {
62+
if ( (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) ) {
6363
return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
6464
}
6565

6666
// Look for #a0b1c2
67-
if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) {
67+
if ( (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) ) {
6868
return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
6969
}
7070

7171
// Look for #fff
72-
if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) {
72+
if ( (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) ) {
7373
return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
7474
}
7575

7676
// Look for rgba(0, 0, 0, 0) == transparent in Safari 3
77-
if (result = /rgba\(0, 0, 0, 0\)/.exec(color)) {
77+
if ( (result = /rgba\(0, 0, 0, 0\)/.exec(color)) ) {
7878
return colors.transparent;
7979
}
8080

@@ -94,7 +94,7 @@ function getColor(elem, attr) {
9494
}
9595

9696
attr = "backgroundColor";
97-
} while ( elem = elem.parentNode );
97+
} while ( (elem = elem.parentNode) );
9898

9999
return getRGB(color);
100100
}

0 commit comments

Comments
 (0)