MCPcopy Create free account
hub / github.com/Blogify/Blogify / Collapse

Function Collapse

public/assets/assets/scripts/frontend.js:9750–9764  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

9748 // ================================
9749
9750 var Collapse = function (element, options) {
9751 this.$element = $(element)
9752 this.options = $.extend({}, Collapse.DEFAULTS, options)
9753 this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
9754 '[data-toggle="collapse"][data-target="#' + element.id + '"]')
9755 this.transitioning = null
9756
9757 if (this.options.parent) {
9758 this.$parent = this.getParent()
9759 } else {
9760 this.addAriaAndCollapsedClass(this.$element, this.$trigger)
9761 }
9762
9763 if (this.options.toggle) this.toggle()
9764 }
9765
9766 Collapse.VERSION = '3.3.4'
9767

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected