diff options
| author | Jacob Thornton <[email protected]> | 2011-08-28 16:47:38 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-08-28 16:47:38 -0700 |
| commit | f1d17223b8a96aea5e11e289cddc488aaeb40f22 (patch) | |
| tree | cf22d297fa384099097abd235ec7e4264bde53b6 /examples/assets/js/bootstrap-dropdown.js | |
| parent | a0cb72f9ae27ded4cf3516e0d3edd042293d9e39 (diff) | |
| download | bootstrap-f1d17223b8a96aea5e11e289cddc488aaeb40f22.tar.xz bootstrap-f1d17223b8a96aea5e11e289cddc488aaeb40f22.zip | |
wrap for domready
Diffstat (limited to 'examples/assets/js/bootstrap-dropdown.js')
| -rw-r--r-- | examples/assets/js/bootstrap-dropdown.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/assets/js/bootstrap-dropdown.js b/examples/assets/js/bootstrap-dropdown.js index b319c818c..80c0c2405 100644 --- a/examples/assets/js/bootstrap-dropdown.js +++ b/examples/assets/js/bootstrap-dropdown.js @@ -7,7 +7,9 @@ $('a.menu').parent('li').removeClass('open') } - $('body').bind("click", clearMenus) + $(function () { + $(window).bind("click", clearMenus) + }) $.fn.dropdown = function ( options ) { return this.each(function () { |
