Cleanup some stuff

This commit is contained in:
Max Lynch
2013-10-09 14:15:54 -05:00
parent fb6d657f88
commit 2da25bf5d2
2 changed files with 12 additions and 14 deletions

View File

@ -16,13 +16,12 @@
ionic.views.List.prototype = {
_handleSwipeLeft: function(e) {
var item = e.target;
var cl = item.classList;
var content;
var buttons;
var buttonsWidth;
window.requestAnimationFrame(function() {
var item = e.target,
cl = item.classList,
content, buttons, buttonsWidth;
// Grab the content item
if(cl.contains('list-item')) {
content = item.querySelector('.list-item-content');
@ -43,10 +42,10 @@
});
},
_handleSwipeRight: function(e) {
var item = e.target;
window.requestAnimationFrame(function() {
var cl = item.classList;
var item = e.target,
cl = item.classList;
if(cl.contains('list-item')) {
content = item.querySelector('.list-item-content');