Add missing data namespace for dropdown

This commit is contained in:
Cina S. 2013-11-16 09:43:47 -06:00
parent 7545da2e3c
commit 56f6847ed6
1 changed files with 2 additions and 2 deletions

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)
})
}