mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
only pass unique options through to child nodes in tooltips
This commit is contained in:
Vendored
+10
-1
@@ -80,7 +80,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, enter: function (e) {
|
, enter: function (e) {
|
||||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
var defaults = $.fn[this.type].defaults
|
||||||
|
, options = {}
|
||||||
|
, self
|
||||||
|
|
||||||
|
|
||||||
|
this._options && $.each(this._options, function (key, value) {
|
||||||
|
if (defaults[key] != value) options[key] = value
|
||||||
|
}, this)
|
||||||
|
|
||||||
|
self = $(e.currentTarget)[this.type](options).data(this.type)
|
||||||
|
|
||||||
if (!self.options.delay || !self.options.delay.show) return self.show()
|
if (!self.options.delay || !self.options.delay.show) return self.show()
|
||||||
|
|
||||||
|
|||||||
Vendored
+10
-1
@@ -1125,7 +1125,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, enter: function (e) {
|
, enter: function (e) {
|
||||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
var defaults = $.fn[this.type].defaults
|
||||||
|
, options = {}
|
||||||
|
, self
|
||||||
|
|
||||||
|
|
||||||
|
this._options && $.each(this._options, function (key, value) {
|
||||||
|
if (defaults[key] != value) options[key] = value
|
||||||
|
}, this)
|
||||||
|
|
||||||
|
self = $(e.currentTarget)[this.type](options).data(this.type)
|
||||||
|
|
||||||
if (!self.options.delay || !self.options.delay.show) return self.show()
|
if (!self.options.delay || !self.options.delay.show) return self.show()
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+9
-1
@@ -80,7 +80,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, enter: function (e) {
|
, enter: function (e) {
|
||||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
var defaults = $.fn[this.type].defaults
|
||||||
|
, options = {}
|
||||||
|
, self
|
||||||
|
|
||||||
|
this._options && $.each(this._options, function (key, value) {
|
||||||
|
if (defaults[key] != value) options[key] = value
|
||||||
|
}, this)
|
||||||
|
|
||||||
|
self = $(e.currentTarget)[this.type](options).data(this.type)
|
||||||
|
|
||||||
if (!self.options.delay || !self.options.delay.show) return self.show()
|
if (!self.options.delay || !self.options.delay.show) return self.show()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user