(option)
| 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 |