mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
rebuild and change data-attr to have priority over options
This commit is contained in:
4
examples/assets/js/bootstrap-popover.js
vendored
4
examples/assets/js/bootstrap-popover.js
vendored
@@ -26,7 +26,7 @@
|
||||
, getTitle: function () {
|
||||
var title
|
||||
if (typeof this.options.title == 'string') {
|
||||
title = this.options.title || this.$element.attr('data-title')
|
||||
title = this.$element.attr('data-title') || this.options.title
|
||||
} else if (typeof this.options.title == 'function') {
|
||||
title = this.options.title.call(this.$element[0])
|
||||
}
|
||||
@@ -36,7 +36,7 @@
|
||||
, getContent: function () {content
|
||||
var content
|
||||
if (typeof this.options.content == 'string') {
|
||||
content = this.options.content || this.$element.attr('data-content')
|
||||
content = this.$element.attr('data-content') || this.options.content
|
||||
} else if (typeof this.options.content == 'function') {
|
||||
content = this.options.content.call(this.$element[0])
|
||||
}
|
||||
|
Reference in New Issue
Block a user