Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2017-03-26 21:26:31 +0300
committerMark Otto <markdotto@gmail.com>2017-03-26 21:26:31 +0300
commit4ab06ca4534da28858c013e765a9ad34f508e4d7 (patch)
tree5b083913dcf7f8b1e5133e7d7114b0f63e65bc91 /js/dist/modal.js
parente20d744bdf6ea396ef6d29ab5c1976635d861b29 (diff)
grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index 8138f19490..8086d2ff6d 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -209,6 +209,10 @@ var Modal = function ($) {
this._scrollbarWidth = null;
};
+ Modal.prototype.handleUpdate = function handleUpdate() {
+ this._adjustDialog();
+ };
+
// private
Modal.prototype._getConfig = function _getConfig(config) {
@@ -290,7 +294,7 @@ var Modal = function ($) {
if (this._isShown) {
$(window).on(Event.RESIZE, function (event) {
- return _this6._handleUpdate(event);
+ return _this6.handleUpdate(event);
});
} else {
$(window).off(Event.RESIZE);
@@ -391,10 +395,6 @@ var Modal = function ($) {
// todo (fat): these should probably be refactored out of modal.js
// ----------------------------------------------------------------------
- Modal.prototype._handleUpdate = function _handleUpdate() {
- this._adjustDialog();
- };
-
Modal.prototype._adjustDialog = function _adjustDialog() {
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;