0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-15 15:29:22 +01:00

Merge pull request #13272 from hnrch02/banish-bind

Replace $.fn.bind with $.fn.on in alert docs
This commit is contained in:
Chris Rebert 2014-04-03 18:03:09 -07:00
commit f6d1a733f5

View File

@ -64,7 +64,7 @@
</table> </table>
</div><!-- /.table-responsive --> </div><!-- /.table-responsive -->
{% highlight js %} {% highlight js %}
$('#my-alert').bind('closed.bs.alert', function () { $('#my-alert').on('closed.bs.alert', function () {
// do something… // do something…
}) })
{% endhighlight %} {% endhighlight %}