Merge pull request #11502 from 1000hz/patch-1

Add missing data namespace for dropdown
This commit is contained in:
Mark Otto 2013-11-29 23:55:43 -08:00
commit a06610a030

View File

@ -123,9 +123,9 @@
$.fn.dropdown = function (option) {
return this.each(function () {
var $this = $(this)
var data = $this.data('dropdown')
var data = $this.data('bs.dropdown')
if (!data) $this.data('dropdown', (data = new Dropdown(this)))
if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
if (typeof option == 'string') data[option].call($this)
})
}