Browse Source

Removes unused local variable and makes the feature detection variable names make a bit more sense.

pull/126/head
Viljami S 12 years ago
parent
commit
a416a91104
  1. 18
      responsiveslides.js

18
responsiveslides.js

@ -38,7 +38,7 @@
var $this = $(this), var $this = $(this),
// Local variables // Local variables
v, p, selectTab, startCycle, restartCycle, rotate, $tabs, vendor, selectTab, startCycle, restartCycle, rotate, $tabs,
// Helpers // Helpers
index = 0, index = 0,
@ -67,18 +67,18 @@
// Detect transition support // Detect transition support
supportsTransitions = (function () { supportsTransitions = (function () {
var b = document.body || document.documentElement; var docBody = document.body || document.documentElement;
var s = b.style; var styles = docBody.style;
var p = "transition"; var prop = "transition";
if (typeof s[p] === "string") { if (typeof styles[prop] === "string") {
return true; return true;
} }
// Tests for vendor specific prop // Tests for vendor specific prop
v = ["Moz", "Webkit", "Khtml", "O", "ms"]; vendor = ["Moz", "Webkit", "Khtml", "O", "ms"];
p = p.charAt(0).toUpperCase() + p.substr(1); prop = prop.charAt(0).toUpperCase() + prop.substr(1);
var i; var i;
for (i = 0; i < v.length; i++) { for (i = 0; i < vendor.length; i++) {
if (typeof s[v[i] + p] === "string") { if (typeof styles[vendor[i] + prop] === "string") {
return true; return true;
} }
} }

Loading…
Cancel
Save