MCPcopy
hub / github.com/kenberkeley/react-demo / Plugin

Function Plugin

static/bootstrap/js/bootstrap.js:142–150  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

140 // =======================
141
142 function Plugin(option) {
143 return this.each(function () {
144 var $this = $(this)
145 var data = $this.data('bs.alert')
146
147 if (!data) $this.data('bs.alert', (data = new Alert(this)))
148 if (typeof option == 'string') data[option].call($this)
149 })
150 }
151
152 var old = $.fn.alert
153

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected