Skip to content

Commit 84eadc0

Browse files
author
Jordan Davis
committed
Add missing vars
1 parent 2dbf71f commit 84eadc0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/ionList/ionList.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ Template.ionList.events({
3737
'click .item-delete' : function(e, template){
3838
e.preventDefault();
3939

40-
target = $(e.target).closest('.item').get(0);
41-
42-
targetData = Blaze.getData(target.getElementsByClassName('item-content')[0])._id || undefined;
40+
var target = $(e.target).closest('.item').get(0);
41+
var targetData = Blaze.getData(target.getElementsByClassName('item-content')[0])._id || undefined;
4342

4443
template.data.ionSortable.find({}).forEach(function(item, i) {
4544
if (item._id === targetData) {

0 commit comments

Comments
 (0)