Skip to content

Commit a416a91

Browse files
committed
Removes unused local variable and makes the feature detection variable names make a bit more sense.
1 parent d98fa32 commit a416a91

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

responsiveslides.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
var $this = $(this),
3939

4040
// Local variables
41-
v, p, selectTab, startCycle, restartCycle, rotate, $tabs,
41+
vendor, selectTab, startCycle, restartCycle, rotate, $tabs,
4242

4343
// Helpers
4444
index = 0,
@@ -67,18 +67,18 @@
6767

6868
// Detect transition support
6969
supportsTransitions = (function () {
70-
var b = document.body || document.documentElement;
71-
var s = b.style;
72-
var p = "transition";
73-
if (typeof s[p] === "string") {
70+
var docBody = document.body || document.documentElement;
71+
var styles = docBody.style;
72+
var prop = "transition";
73+
if (typeof styles[prop] === "string") {
7474
return true;
7575
}
7676
// Tests for vendor specific prop
77-
v = ["Moz", "Webkit", "Khtml", "O", "ms"];
78-
p = p.charAt(0).toUpperCase() + p.substr(1);
77+
vendor = ["Moz", "Webkit", "Khtml", "O", "ms"];
78+
prop = prop.charAt(0).toUpperCase() + prop.substr(1);
7979
var i;
80-
for (i = 0; i < v.length; i++) {
81-
if (typeof s[v[i] + p] === "string") {
80+
for (i = 0; i < vendor.length; i++) {
81+
if (typeof styles[vendor[i] + prop] === "string") {
8282
return true;
8383
}
8484
}
@@ -95,7 +95,7 @@
9595
.eq(idx)
9696
.addClass(visibleClass)
9797
.css(visible);
98-
index = idx;
98+
index = idx;
9999
setTimeout(function () {
100100
settings.after();
101101
}, fadeTime);

0 commit comments

Comments
 (0)