MCPcopy Create free account
hub / github.com/HangfireIO/Hangfire.Samples / Collapse

Function Collapse

Hangfire.WebFormsApplication/Scripts/bootstrap.js:573–587  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

571 // ================================
572
573 var Collapse = function (element, options) {
574 this.$element = $(element)
575 this.options = $.extend({}, Collapse.DEFAULTS, options)
576 this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
577 '[data-toggle="collapse"][data-target="#' + element.id + '"]')
578 this.transitioning = null
579
580 if (this.options.parent) {
581 this.$parent = this.getParent()
582 } else {
583 this.addAriaAndCollapsedClass(this.$element, this.$trigger)
584 }
585
586 if (this.options.toggle) this.toggle()
587 }
588
589 Collapse.VERSION = '3.4.2'
590

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected