Merge branch 'master' into 2.0.0-wip

This commit is contained in:
connors 2013-09-14 14:46:18 -07:00
Родитель f57a25043f 52b59b07ba
Коммит 4093770622
2 изменённых файлов: 13 добавлений и 9 удалений

12
dist/ratchet.js поставляемый
Просмотреть файл

@ -467,7 +467,7 @@
window.addEventListener("touchend", function (e) {
var activeTab;
var activeBody;
var activeBodies;
var targetBody;
var targetTab;
var className = 'active';
@ -489,11 +489,13 @@
if (!targetBody) return;
activeBody = targetBody.parentNode.querySelector(classSelector);
activeBodies = targetBody.parentNode.querySelectorAll(classSelector);
if (activeBody) activeBody.classList.remove(className);
for (var i = 0; i < activeBodies.length; i++) {
activeBodies[i].classList.remove(className);
}
targetBody.classList.add(className)
targetBody.classList.add(className);
});
window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); });
@ -703,4 +705,4 @@
toggle = false;
});
}();
}();

Просмотреть файл

@ -14,7 +14,7 @@
window.addEventListener("touchend", function (e) {
var activeTab;
var activeBody;
var activeBodies;
var targetBody;
var targetTab;
var className = 'active';
@ -36,11 +36,13 @@
if (!targetBody) return;
activeBody = targetBody.parentNode.querySelector(classSelector);
activeBodies = targetBody.parentNode.querySelectorAll(classSelector);
if (activeBody) activeBody.classList.remove(className);
for (var i = 0; i < activeBodies.length; i++) {
activeBodies[i].classList.remove(className);
}
targetBody.classList.add(className)
targetBody.classList.add(className);
});
window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); });