]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Merge branch 'master' of git://github.com/marcelkorpel/bootstrap into marcelkorpel...
authorfat <jacobthornton@gmail.com>
Sat, 22 Dec 2012 01:19:36 +0000 (17:19 -0800)
committerfat <jacobthornton@gmail.com>
Sat, 22 Dec 2012 01:19:36 +0000 (17:19 -0800)
1  2 
js/bootstrap-typeahead.js
js/tests/unit/bootstrap-typeahead.js

Simple merge
index 4bdbce97091d43404d6fcaed0c349bdb7d134b54,5e1183609a1e057abdd00b9f57bc8c5127912528..0aa2d61b17ecef4b8ede26c6d45d2a34b8d1f80b
@@@ -189,9 -159,11 +189,11 @@@ $(function () 
        test("should set input value to selected item", function () {
          var $input = $('<input />').typeahead({
                source: ['aa', 'ab', 'ac']
 -            })
 +            }).appendTo('body')
            , typeahead = $input.data('typeahead')
            , changed = false
+           , focus = false
+           , blur = false
  
          $input.val('a')
          typeahead.lookup()
          equals($input.val(), 'ac', 'input value was correctly set')
          ok(!typeahead.$menu.is(':visible'), 'the menu was hidden')
          ok(changed, 'a change event was fired')
+         ok(focus && !blur, 'focus is still set')
  
 +        $input.remove()
          typeahead.$menu.remove()
        })