Add missing data namespace for dropdown
This commit is contained in:
parent
7545da2e3c
commit
56f6847ed6
|
@ -123,9 +123,9 @@
|
||||||
$.fn.dropdown = function (option) {
|
$.fn.dropdown = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
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)
|
if (typeof option == 'string') data[option].call($this)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue