test/dummy/tmp/cache/assets/D5C/3F0/sprockets%2F67d5fd7ae45e04fd786ee67812769cb5 in bootstrap-sass-rails-2.2.2.1 vs test/dummy/tmp/cache/assets/D5C/3F0/sprockets%2F67d5fd7ae45e04fd786ee67812769cb5 in bootstrap-sass-rails-2.3.0.0

- old
+ new

@@ -1,9 +1,9 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1364283943.4885209:@expires_in0: @value""{I" +o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1360499955.320582:@expires_in0: @value"${I" class:EFI"ProcessedAsset;FI"logical_path;FI"#twitter/bootstrap/typeahead.js;TI" pathname;FI"z/Users/mjonuschat/Documents/Development/bootstrap-sass-rails/vendor/assets/javascripts/twitter/bootstrap/typeahead.js;TI"content_type;FI"application/javascript;FI" -mtime;FI"2013-03-26T08:42:35+01:00;FI" length;Fi2I" digest;F"%a88b8064f8a1684bc98cbf11d048ad5dI" source;FI"2/* ============================================================= - * bootstrap-typeahead.js v2.2.2 +mtime;FI"2013-02-10T13:34:51+01:00;FI" length;Fi I" digest;F"%e449c65482ecc60d1d5cc9f9b90774f9I" source;FI" /* ============================================================= + * bootstrap-typeahead.js v2.3.0 * http://twitter.github.com/bootstrap/javascript.html#typeahead * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -173,10 +173,11 @@ prev.addClass('active') } , listen: function () { this.$element + .on('focus', $.proxy(this.focus, this)) .on('blur', $.proxy(this.blur, this)) .on('keypress', $.proxy(this.keypress, this)) .on('keyup', $.proxy(this.keyup, this)) if (this.eventSupported('keydown')) { @@ -184,10 +185,11 @@ } this.$menu .on('click', $.proxy(this.click, this)) .on('mouseenter', 'li', $.proxy(this.mouseenter, this)) + .on('mouseleave', 'li', $.proxy(this.mouseleave, this)) } , eventSupported: function(eventName) { var isSupported = eventName in this.$element if (!isSupported) { @@ -257,26 +259,37 @@ e.stopPropagation() e.preventDefault() } + , focus: function (e) { + this.focused = true + } + , blur: function (e) { - var that = this - setTimeout(function () { that.hide() }, 150) + this.focused = false + if (!this.mousedover && this.shown) this.hide() } , click: function (e) { e.stopPropagation() e.preventDefault() this.select() + this.$element.focus() } , mouseenter: function (e) { + this.mousedover = true this.$menu.find('.active').removeClass('active') $(e.currentTarget).addClass('active') } + , mouseleave: function (e) { + this.mousedover = false + if (!this.focused && this.shown) this.hide() + } + } /* TYPEAHEAD PLUGIN DEFINITION * =========================== */ @@ -317,12 +330,11 @@ * ================== */ $(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) { var $this = $(this) if ($this.data('typeahead')) return - e.preventDefault() $this.typeahead($this.data()) }) }(window.jQuery); -;FI"dependency_digest;F"%a5dd0c96ea49d7e8d788b3978f32b33cI"required_paths;F[I"z/Users/mjonuschat/Documents/Development/bootstrap-sass-rails/vendor/assets/javascripts/twitter/bootstrap/typeahead.js;TI"dependency_paths;F[{I" path;FI"z/Users/mjonuschat/Documents/Development/bootstrap-sass-rails/vendor/assets/javascripts/twitter/bootstrap/typeahead.js;TI" -mtime;FI"2013-03-26T08:42:35+01:00;FI" digest;F"%e76b22436013c670a21c2b5aa259610cI" _version;F"%4551e838e1c997a06de3a473b49c77c4 +;FI"dependency_digest;F"%fa47f3474a60372c0dc9ccf2cbe2f558I"required_paths;F[I"z/Users/mjonuschat/Documents/Development/bootstrap-sass-rails/vendor/assets/javascripts/twitter/bootstrap/typeahead.js;TI"dependency_paths;F[{I" path;FI"z/Users/mjonuschat/Documents/Development/bootstrap-sass-rails/vendor/assets/javascripts/twitter/bootstrap/typeahead.js;TI" +mtime;FI"2013-02-10T13:34:51+01:00;FI" digest;F"%db6d30a1546d34225adadde63747e44cI" _version;F"%e8aaf3e3e64f041690716d156e5182c7 \ No newline at end of file