Browse Source

Consistency fixes

pull/126/head
Viljami S 12 years ago
parent
commit
c2eb1f5a1f
  1. 8
      responsiveslides.js

8
responsiveslides.js

@ -69,16 +69,16 @@
supportsTransitions = (function () { supportsTransitions = (function () {
var b = document.body || document.documentElement; var b = document.body || document.documentElement;
var s = b.style; var s = b.style;
var p = 'transition'; var p = "transition";
if (typeof s[p] === 'string') { if (typeof s[p] === "string") {
return true; return true;
} }
// Tests for vendor specific prop // Tests for vendor specific prop
v = ['Moz', 'Webkit', 'Khtml', 'O', 'ms']; v = ["Moz", "Webkit", "Khtml", "O", "ms"];
p = p.charAt(0).toUpperCase() + p.substr(1); p = p.charAt(0).toUpperCase() + p.substr(1);
var i; var i;
for (i = 0; i < v.length; i++) { for (i = 0; i < v.length; i++) {
if (typeof s[v[i] + p] === 'string') { if (typeof s[v[i] + p] === "string") {
return true; return true;
} }
} }

Loading…
Cancel
Save