EntryController = require './index'
class FolderController extends EntryController 
	className: 'browser-folder'
	events:'click':'click'

	constructor:->
		super
		@update({@count})
		
	update:(opts={})->@el.attr 'data-count', opts.count or 0
	
	click : ->@trigger 'select', @item

module.exports = FolderController