MCPcopy Create free account
hub / github.com/kenberkeley/react-demo / Modal

Function Modal

static/bootstrap/js/bootstrap.js:926–944  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

924 // ======================
925
926 var Modal = function (element, options) {
927 this.options = options
928 this.$body = $(document.body)
929 this.$element = $(element)
930 this.$dialog = this.$element.find('.modal-dialog')
931 this.$backdrop = null
932 this.isShown = null
933 this.originalBodyPad = null
934 this.scrollbarWidth = 0
935 this.ignoreBackdropClick = false
936
937 if (this.options.remote) {
938 this.$element
939 .find('.modal-content')
940 .load(this.options.remote, $.proxy(function () {
941 this.$element.trigger('loaded.bs.modal')
942 }, this))
943 }
944 }
945
946 Modal.VERSION = '3.3.5'
947

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected