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
path: root/js
diff options
context:
space:
mode:
authorSean Jones <seany.jones@googlemail.com>2016-01-15 15:13:40 +0300
committerSean Jones <seany.jones@googlemail.com>2016-01-15 15:13:40 +0300
commit9f2f51073cfbf3d2a4a16a901a60d184cbcfd4c4 (patch)
treebd21bc7827194eb62fa4d467a102ee808dcf6a89 /js
parent742d3ebcb5d68873ca16596a79879d55d9df1f21 (diff)
enforceFocus event.target - event is undefined
event.target should be e.target within enforceFocus method.
Diffstat (limited to 'js')
-rw-r--r--js/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js
index 7d98516e75..f8a2d0943f 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -140,7 +140,7 @@
$(document)
.off('focusin.bs.modal') // guard against infinite focus loop
.on('focusin.bs.modal', $.proxy(function (e) {
- if (document !== event.target &&
+ if (document !== e.target &&
this.$element[0] !== e.target &&
!this.$element.has(e.target).length) {
this.$element.trigger('focus')