mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
fixes #8816
This commit is contained in:
Vendored
+1
-1
@@ -235,7 +235,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
|
|||||||
$.fn.button = function (option) {
|
$.fn.button = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
var data = $this.data('button')
|
var data = $this.data('bs.button')
|
||||||
var options = typeof option == 'object' && option
|
var options = typeof option == 'object' && option
|
||||||
|
|
||||||
if (!data) $this.data('bs.button', (data = new Button(this, options)))
|
if (!data) $this.data('bs.button', (data = new Button(this, options)))
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -72,7 +72,7 @@
|
|||||||
$.fn.button = function (option) {
|
$.fn.button = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
var data = $this.data('button')
|
var data = $this.data('bs.button')
|
||||||
var options = typeof option == 'object' && option
|
var options = typeof option == 'object' && option
|
||||||
|
|
||||||
if (!data) $this.data('bs.button', (data = new Button(this, options)))
|
if (!data) $this.data('bs.button', (data = new Button(this, options)))
|
||||||
|
|||||||
Reference in New Issue
Block a user