1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 21:49:09 +01:00

Merge pull request #10519 from zba/master

changed attr('data-target') to data('target');
This commit is contained in:
Chris Rebert 2013-10-14 19:14:58 -07:00
commit f11aa31023

View File

@ -30,7 +30,7 @@
Tab.prototype.show = function () { Tab.prototype.show = function () {
var $this = this.element var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)') var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.attr('data-target') var selector = $this.data('target')
if (!selector) { if (!selector) {
selector = $this.attr('href') selector = $this.attr('href')