More changes from jq.data to pure props.

This commit is contained in:
Lars Jung 2016-06-24 19:37:57 +02:00
parent a3c9bc9db0
commit 131d153cf5
8 changed files with 15 additions and 19 deletions

View file

@ -127,9 +127,7 @@ const createHtml = item => {
const $date = $html.find('.date');
const $size = $html.find('.size');
$html
.addClass(item.isFolder() ? 'folder' : 'file')
.data('item', item);
$html.addClass(item.isFolder() ? 'folder' : 'file');
$html[0]._item = item;
location.setLink($a, item);