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