Browse Source

Run `grunt`.

pull/663/head
XhmikosR 10 years ago
parent
commit
d412b60058
  1. 68
      dist/js/ratchet.js
  2. 2
      dist/js/ratchet.min.js
  3. 68
      docs/dist/js/ratchet.js
  4. 2
      docs/dist/js/ratchet.min.js

68
dist/js/ratchet.js vendored

@ -7,6 +7,37 @@
* v2.0.2 designed by @connors. * v2.0.2 designed by @connors.
* ===================================================== * =====================================================
*/ */
/* ========================================================================
* Ratchet: common.js v2.0.2
* http://goratchet.com/
* ========================================================================
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
// Create Ratchet namespace
if (typeof window.RATCHET === 'undefined') {
window.RATCHET = {};
}
// Original script from http://davidwalsh.name/vendor-prefix
window.RATCHET.getBrowserCapabilities = (function () {
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
prefix: '-' + pre + '-',
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
}());
/* ======================================================================== /* ========================================================================
* Ratchet: modals.js v2.0.2 * Ratchet: modals.js v2.0.2
* http://goratchet.com/components#modals * http://goratchet.com/components#modals
@ -640,7 +671,10 @@
} }
}); });
window.addEventListener('popstate', popstate); window.addEventListener('popstate', popstate);
// TODO : Remove this line in the next major version
window.PUSH = PUSH; window.PUSH = PUSH;
window.RATCHET.push = PUSH;
}()); }());
@ -742,22 +776,8 @@
var scrollableArea; var scrollableArea;
var startedMoving; var startedMoving;
// Original script from http://davidwalsh.name/vendor-prefix var transformPrefix = window.RATCHET.getBrowserCapabilities.prefix;
var getBrowserCapabilities = (function () { var transformProperty = window.RATCHET.getBrowserCapabilities.transform;
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
prefix: '-' + pre + '-',
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
var transformPrefix = getBrowserCapabilities.prefix;
var transformProperty = getBrowserCapabilities.transform;
var getSlider = function (target) { var getSlider = function (target) {
var i; var i;
@ -893,21 +913,7 @@
var touchMove = false; var touchMove = false;
var distanceX = false; var distanceX = false;
var toggle = false; var toggle = false;
var transformProperty = window.RATCHET.getBrowserCapabilities.transform;
// Original script from http://davidwalsh.name/vendor-prefix
var getBrowserCapabilities = (function () {
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
var transformProperty = getBrowserCapabilities.transform;
var findToggle = function (target) { var findToggle = function (target) {
var i; var i;

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

68
docs/dist/js/ratchet.js vendored

@ -7,6 +7,37 @@
* v2.0.2 designed by @connors. * v2.0.2 designed by @connors.
* ===================================================== * =====================================================
*/ */
/* ========================================================================
* Ratchet: common.js v2.0.2
* http://goratchet.com/
* ========================================================================
* Copyright 2015 Connor Sears
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
* ======================================================================== */
!(function () {
'use strict';
// Create Ratchet namespace
if (typeof window.RATCHET === 'undefined') {
window.RATCHET = {};
}
// Original script from http://davidwalsh.name/vendor-prefix
window.RATCHET.getBrowserCapabilities = (function () {
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
prefix: '-' + pre + '-',
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
}());
/* ======================================================================== /* ========================================================================
* Ratchet: modals.js v2.0.2 * Ratchet: modals.js v2.0.2
* http://goratchet.com/components#modals * http://goratchet.com/components#modals
@ -640,7 +671,10 @@
} }
}); });
window.addEventListener('popstate', popstate); window.addEventListener('popstate', popstate);
// TODO : Remove this line in the next major version
window.PUSH = PUSH; window.PUSH = PUSH;
window.RATCHET.push = PUSH;
}()); }());
@ -742,22 +776,8 @@
var scrollableArea; var scrollableArea;
var startedMoving; var startedMoving;
// Original script from http://davidwalsh.name/vendor-prefix var transformPrefix = window.RATCHET.getBrowserCapabilities.prefix;
var getBrowserCapabilities = (function () { var transformProperty = window.RATCHET.getBrowserCapabilities.transform;
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
prefix: '-' + pre + '-',
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
var transformPrefix = getBrowserCapabilities.prefix;
var transformProperty = getBrowserCapabilities.transform;
var getSlider = function (target) { var getSlider = function (target) {
var i; var i;
@ -893,21 +913,7 @@
var touchMove = false; var touchMove = false;
var distanceX = false; var distanceX = false;
var toggle = false; var toggle = false;
var transformProperty = window.RATCHET.getBrowserCapabilities.transform;
// Original script from http://davidwalsh.name/vendor-prefix
var getBrowserCapabilities = (function () {
var styles = window.getComputedStyle(document.documentElement, '');
var pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];
return {
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform'
};
})();
var transformProperty = getBrowserCapabilities.transform;
var findToggle = function (target) { var findToggle = function (target) {
var i; var i;

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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save