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:
authorfat <fat@folders.local>2015-05-13 02:52:54 +0300
committerfat <fat@folders.local>2015-05-13 02:52:54 +0300
commitab1578465aee4a776412b48f16bfefca79381919 (patch)
tree0766caa82a67cd6328273aa5f2a826c579d44d32 /js/dist/modal.js
parenta58febf71a5eac2161ce2db08c7d723755ed1163 (diff)
grunt test-js, grunt dist-js now working
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index 4560dff78e..9170fca4b9 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -114,7 +114,7 @@ var Modal = (function ($) {
this._setEscapeEvent();
this._setResizeEvent();
- $(this._element).on(Event.DISMISS, Selector.DATA_DISMISS, this.hide.bind(this));
+ $(this._element).on(Event.DISMISS, Selector.DATA_DISMISS, $.proxy(this.hide, this));
$(this._dialog).on(Event.MOUSEDOWN, function () {
$(_this._element).one(Event.MOUSEUP, function (event) {
@@ -124,7 +124,7 @@ var Modal = (function ($) {
});
});
- this._showBackdrop(this._showElement.bind(this, relatedTarget));
+ this._showBackdrop($.proxy(this._showElement, this, relatedTarget));
}
}, {
key: 'hide',
@@ -155,7 +155,7 @@ var Modal = (function ($) {
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
- $(this._element).one(Util.TRANSITION_END, this._hideModal.bind(this)).emulateTransitionEnd(TRANSITION_DURATION);
+ $(this._element).one(Util.TRANSITION_END, $.proxy(this._hideModal, this)).emulateTransitionEnd(TRANSITION_DURATION);
} else {
this._hideModal();
}
@@ -232,7 +232,7 @@ var Modal = (function ($) {
key: '_setResizeEvent',
value: function _setResizeEvent() {
if (this._isShown) {
- $(window).on(Event.RESIZE, this._handleUpdate.bind(this));
+ $(window).on(Event.RESIZE, $.proxy(this._handleUpdate, this));
} else {
$(window).off(Event.RESIZE);
}