Browse Source

Run `grunt`.

[ci skip]
master
XhmikosR 9 years ago
parent
commit
c662c76a36
  1. 21
      dist/js/ratchet.js
  2. 2
      dist/js/ratchet.min.js
  3. 2
      dist/js/ratchet.min.js.map
  4. 21
      docs/dist/js/ratchet.js
  5. 2
      docs/dist/js/ratchet.min.js
  6. 2
      docs/dist/js/ratchet.min.js.map

21
dist/js/ratchet.js vendored

@ -76,14 +76,6 @@
!(function () {
'use strict';
var eventModalOpen = new CustomEvent('modalOpen', {
bubbles: true,
cancelable: true
});
var eventModalClose = new CustomEvent('modalClose', {
bubbles: true,
cancelable: true
});
var findModals = function (target) {
var i;
var modals = document.querySelectorAll('a');
@ -107,9 +99,18 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal && modal.classList.contains('modal')) {
var eventToDispatch = eventModalOpen;
var eventToDispatch = null;
if (modal.classList.contains('active')) {
eventToDispatch = eventModalClose;
eventToDispatch = new CustomEvent('modalClose', {
bubbles: true,
cancelable: true
});
}
else {
eventToDispatch = new CustomEvent('modalOpen', {
bubbles: true,
cancelable: true
});
}
modal.dispatchEvent(eventToDispatch);
modal.classList.toggle('active');

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

21
docs/dist/js/ratchet.js vendored

@ -76,14 +76,6 @@
!(function () {
'use strict';
var eventModalOpen = new CustomEvent('modalOpen', {
bubbles: true,
cancelable: true
});
var eventModalClose = new CustomEvent('modalClose', {
bubbles: true,
cancelable: true
});
var findModals = function (target) {
var i;
var modals = document.querySelectorAll('a');
@ -107,9 +99,18 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal && modal.classList.contains('modal')) {
var eventToDispatch = eventModalOpen;
var eventToDispatch = null;
if (modal.classList.contains('active')) {
eventToDispatch = eventModalClose;
eventToDispatch = new CustomEvent('modalClose', {
bubbles: true,
cancelable: true
});
}
else {
eventToDispatch = new CustomEvent('modalOpen', {
bubbles: true,
cancelable: true
});
}
modal.dispatchEvent(eventToDispatch);
modal.classList.toggle('active');

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

File diff suppressed because one or more lines are too long

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

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