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:
authorJacob Thornton <jacobthornton@gmail.com>2012-08-03 03:58:25 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-08-03 03:58:25 +0400
commit2b2b3303e1e93d627bf57d145173a523d991803c (patch)
tree2115e6d9b0e02095dbd38ab3bc20f6e8c7c89302 /js
parent48546c2735f445618fc3972a752393417d17ebb3 (diff)
fix indexof on array for ie8
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-typeahead.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index 65b1ddab14..a90767c3b9 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -208,7 +208,7 @@
}
, keydown: function (e) {
- this.suppressKeyPressRepeat = !~[40,38,9,13,27].indexOf(e.keyCode)
+ this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27])
this.move(e)
}