(option)
| 9346 | // ======================= |
| 9347 | |
| 9348 | function Plugin(option) { |
| 9349 | return this.each(function () { |
| 9350 | var $this = $(this) |
| 9351 | var data = $this.data('bs.alert') |
| 9352 | |
| 9353 | if (!data) $this.data('bs.alert', (data = new Alert(this))) |
| 9354 | if (typeof option == 'string') data[option].call($this) |
| 9355 | }) |
| 9356 | } |
| 9357 | |
| 9358 | var old = $.fn.alert |
| 9359 |