Browse Source

Merge pull request #442 from twbs/typeerror

Fix TypeError in sliders.js
pull/498/head
XhmikosR 11 years ago
parent
commit
96726ad68c
  1. 8
      dist/js/ratchet.js
  2. 2
      dist/js/ratchet.min.js
  3. 8
      docs/dist/js/ratchet.js
  4. 2
      docs/dist/js/ratchet.min.js
  5. 8
      js/sliders.js

8
dist/js/ratchet.js vendored

@ -716,9 +716,11 @@
}; };
var getScroll = function () { var getScroll = function () {
var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/); if ('webkitTransform' in slider.style) {
var ret = translate3d ? translate3d[1] : 0; var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/);
return parseInt(ret, 10); var ret = translate3d ? translate3d[1] : 0;
return parseInt(ret, 10);
}
}; };
var setSlideNumber = function (offset) { var setSlideNumber = function (offset) {

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

8
docs/dist/js/ratchet.js vendored

@ -716,9 +716,11 @@
}; };
var getScroll = function () { var getScroll = function () {
var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/); if ('webkitTransform' in slider.style) {
var ret = translate3d ? translate3d[1] : 0; var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/);
return parseInt(ret, 10); var ret = translate3d ? translate3d[1] : 0;
return parseInt(ret, 10);
}
}; };
var setSlideNumber = function (offset) { var setSlideNumber = function (offset) {

2
docs/dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

8
js/sliders.js

@ -36,9 +36,11 @@
}; };
var getScroll = function () { var getScroll = function () {
var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/); if ('webkitTransform' in slider.style) {
var ret = translate3d ? translate3d[1] : 0; var translate3d = slider.style.webkitTransform.match(/translate3d\(([^,]*)/);
return parseInt(ret, 10); var ret = translate3d ? translate3d[1] : 0;
return parseInt(ret, 10);
}
}; };
var setSlideNumber = function (offset) { var setSlideNumber = function (offset) {

Loading…
Cancel
Save