]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add missing data namespace for dropdown 11502/head
authorCina S. <itscina@gmail.com>
Sat, 16 Nov 2013 15:43:47 +0000 (09:43 -0600)
committerCina S. <itscina@gmail.com>
Sat, 16 Nov 2013 15:43:47 +0000 (09:43 -0600)
js/dropdown.js

index d5da638def3b23262ce6c6457d2c58a8dc637e45..2bf65e5dfcf979649527f033a39fc23b5a6b14a9 100644 (file)
   $.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)
     })
   }