MCPcopy Index your code
hub / github.com/Blogify/Blogify / clickHandler

Function clickHandler

public/assets/assets/scripts/frontend.js:9704–9720  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

9702 // =================
9703
9704 var clickHandler = function (e) {
9705 var href
9706 var $this = $(this)
9707 var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
9708 if (!$target.hasClass('carousel')) return
9709 var options = $.extend({}, $target.data(), $this.data())
9710 var slideIndex = $this.attr('data-slide-to')
9711 if (slideIndex) options.interval = false
9712
9713 Plugin.call($target, options)
9714
9715 if (slideIndex) {
9716 $target.data('bs.carousel').to(slideIndex)
9717 }
9718
9719 e.preventDefault()
9720 }
9721
9722 $(document)
9723 .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected