From 2da25bf5d20a55d91149bea29bc311c88afa549a Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Wed, 9 Oct 2013 14:15:54 -0500 Subject: [PATCH] Cleanup some stuff --- dist/ionic.js | 13 ++++++------- js/views/listView.js | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/dist/ionic.js b/dist/ionic.js index aa09b172ef..b90457d3b0 100644 --- a/dist/ionic.js +++ b/dist/ionic.js @@ -1796,13 +1796,12 @@ window.ionic = { 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'); @@ -1823,10 +1822,10 @@ window.ionic = { }); }, _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'); diff --git a/js/views/listView.js b/js/views/listView.js index 8d75ce6943..4fb49d91d6 100644 --- a/js/views/listView.js +++ b/js/views/listView.js @@ -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');