diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 28407b9a3d..89446db2c2 100644
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
diff --git a/docs/assets/js/bootstrap-modal.js b/docs/assets/js/bootstrap-modal.js
index 180f0b64d9..ffbed0d2ef 100644
--- a/docs/assets/js/bootstrap-modal.js
+++ b/docs/assets/js/bootstrap-modal.js
@@ -177,7 +177,7 @@
return this.each(function () {
var $this = $(this)
, data = $this.data('modal')
- , options = $.extend({}, $.fn.modal.defaults, typeof option == 'object' && option)
+ , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('modal', (data = new Modal(this, options)))
if (typeof option == 'string') data[option]()
else if (options.show) data.show()
diff --git a/docs/javascript.html b/docs/javascript.html
index 855cd82bc4..f5563ac537 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -733,7 +733,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
placement |
- string |
+ string|function |
'top' |
how to position the tooltip - top | bottom | left | right |
@@ -836,7 +836,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
placement |
- string |
+ string|function |
'right' |
how to position the popover - top | bottom | left | right |
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 012e195f59..553913d21d 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -657,7 +657,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
{{_i}}placement{{/i}} |
- {{_i}}string{{/i}} |
+ {{_i}}string|function{{/i}} |
'top' |
{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right |
@@ -760,7 +760,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
{{_i}}placement{{/i}} |
- {{_i}}string{{/i}} |
+ {{_i}}string|function{{/i}} |
'right' |
{{_i}}how to position the popover{{/i}} - top | bottom | left | right |
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 180f0b64d9..ffbed0d2ef 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -177,7 +177,7 @@
return this.each(function () {
var $this = $(this)
, data = $this.data('modal')
- , options = $.extend({}, $.fn.modal.defaults, typeof option == 'object' && option)
+ , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('modal', (data = new Modal(this, options)))
if (typeof option == 'string') data[option]()
else if (options.show) data.show()