aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-09-20 16:26:00 -0700
committerJacob Thornton <[email protected]>2012-09-20 16:26:00 -0700
commitfe38d12f122cc0a9e3435ffa0d7de58b6fa941f4 (patch)
tree9c9ebfe9f7e37205bee68ecfebd378ec21c4a55f /docs/assets/js/bootstrap.js
parent667179f406ea66fbe2d688bb132eaa0c0f7383a6 (diff)
downloadbootstrap-fe38d12f122cc0a9e3435ffa0d7de58b6fa941f4.tar.xz
bootstrap-fe38d12f122cc0a9e3435ffa0d7de58b6fa941f4.zip
rebuild - fix missing (
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index 4baf3759c..b6497686d 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -1797,7 +1797,7 @@
.on('keypress', $.proxy(this.keypress, this))
.on('keyup', $.proxy(this.keyup, this))
- if ($.browser.chrome || $.browser.webkit || $.browser.msie) {
+ if (this.eventSupported('keydown')) {
this.$element.on('keydown', $.proxy(this.keydown, this))
}
@@ -1806,6 +1806,15 @@
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
}
+ , eventSupported: function(eventName) {
+ var isSupported = eventName in this.$element
+ if (!isSupported) {
+ this.$element.setAttribute(eventName, 'return;')
+ isSupported = typeof this.$element[eventName] === 'function'
+ }
+ return isSupported
+ }
+
, move: function (e) {
if (!this.shown) return