aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-06-02 22:10:35 -0700
committerJacob Thornton <[email protected]>2012-06-02 22:10:35 -0700
commit2d3a0babd242d7eebe09cf3f4daad38e2d7df6ee (patch)
treef1152d3b0c2cd04b65dcfaceed8f54960a0c1e51 /docs/assets/js/bootstrap.js
parent4a276b1620f84da7343635731f6b3dbfa301d381 (diff)
downloadbootstrap-2d3a0babd242d7eebe09cf3f4daad38e2d7df6ee.tar.xz
bootstrap-2d3a0babd242d7eebe09cf3f4daad38e2d7df6ee.zip
make active selector more specific #2043 and rebuild
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index eeef82d31..3987303e7 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -290,7 +290,7 @@
}
, to: function (pos) {
- var $active = this.$element.find('.active')
+ var $active = this.$element.find('.item.active')
, children = $active.parent().children()
, activePos = children.index($active)
, that = this
@@ -486,7 +486,7 @@
this.$element[dimension](0)
this.transition('addClass', $.Event('show'), 'shown')
- this.$element[dimension](this.$element[0][scroll])
+ $.support.transition && this.$element[dimension](this.$element[0][scroll])
}
, hide: function () {
@@ -1676,9 +1676,7 @@
}
, lookup: function (event) {
- var that = this
- , items
- , q
+ var items
this.query = this.$element.val()
@@ -1686,7 +1684,15 @@
return this.shown ? this.hide() : this
}
- items = $.grep(this.source, function (item) {
+ items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source
+
+ return items ? this.process(items) : this
+ }
+
+ , process: function (items) {
+ var that = this
+
+ items = $.grep(items, function (item) {
return that.matcher(item)
})
@@ -1889,4 +1895,4 @@
})
})
-}(window.jQuery); \ No newline at end of file
+}(window.jQuery);