aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-27 13:21:01 -0800
committerMark Otto <[email protected]>2012-01-27 13:21:01 -0800
commitccd963e622bdcadc8a79f5b8c1bb770b09f63f20 (patch)
tree64c97dbd98648791b2eb04682e25dcc6610f5aa4 /js
parente8647c1b118d2c726a8987e9a41aad82da972b57 (diff)
parent3b3dbd7229f53eb71759def4eca90dfd7a2699f8 (diff)
downloadbootstrap-ccd963e622bdcadc8a79f5b8c1bb770b09f63f20.tar.xz
bootstrap-ccd963e622bdcadc8a79f5b8c1bb770b09f63f20.zip
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
Conflicts: docs/assets/css/bootstrap.css docs/download.html
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-typeahead.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index 6417594fe..b4d839c93 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -25,7 +25,7 @@
this.$element = $(element)
this.options = $.extend({}, $.fn.typeahead.defaults, options)
this.$menu = $(this.options.menu).appendTo('body')
- this.data = this.options.data
+ this.source = this.options.source
this.shown = false
this.listen()
}
@@ -79,7 +79,7 @@
q = this.query.toLowerCase()
- items = jQuery.grep(this.data, function (item) {
+ items = jQuery.grep(this.source, function (item) {
if (that.matcher(item, q)) return item
})
@@ -229,7 +229,8 @@
}
$.fn.typeahead.defaults = {
- items: 8
+ source: []
+ , items: 8
, menu: '<ul class="typeahead dropdown-menu"></ul>'
, item: '<li><a href="#"></a></li>'
}