 
 		# We try to build the view of holdings of a possible hold target.
 		# If a holding is checked out, we will try to get its due date.
-		@html(holding_details)
-		.trigger('create')
+		($plugin = @html(holding_details).trigger('create'))
 		.find('[data-role="listview"]')
 		.openils "holding details ##{title_id}", 'search.biblio.copy_location_counts.summary.retrieve',
 			id: title_id

			# We don't show the holding list if there are no holdings as
			# indicated by an empty copy_location list.
			if copy_location.length is 0
				@parent().empty()
				return

			@publish 'opac.title_hold', [title_id]

						, (ids) ->
							for copy_id in ids
								$holding.openils "due dates ##{copy_id}", 'search.asset.copy.fleshed2.retrieve', copy_id, show_due_date

			# We don't show the holding list if there are no relevant holdings
			$plugin.empty().trigger('create') if @children().length is 0

			return

		return @

)(jQuery)
