Commit 6a9cd513 authored by fat-kun's avatar fat-kun

Merge pull request #6783 from joprice/popoverOptionsOverride

reordered access of options in tooltip and popover
parents 042bb9b5 4b86a91e
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
, $e = this.$element , $e = this.$element
, o = this.options , o = this.options
content = $e.attr('data-content') content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) || $e.attr('data-content')
return content return content
} }
...@@ -111,4 +111,4 @@ ...@@ -111,4 +111,4 @@
return this return this
} }
}(window.jQuery); }(window.jQuery);
\ No newline at end of file
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
} }
, getOptions: function (options) { , getOptions: function (options) {
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data()) options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
if (options.delay && typeof options.delay == 'number') { if (options.delay && typeof options.delay == 'number') {
options.delay = { options.delay = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment