MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / Plugin

Function Plugin

OpenReservation/wwwroot/Scripts/bootstrap.js:138–146  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected