{"action":"closed","issue":{"number":177,"created_at":"2011-10-14T03:47:12Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I noticed that if you have many select menus in the page, and you destroy and recreate one of them, the other ones won't close after click.\r\nThe reason why is because you bind to document the click event and then unbind all of them in destroy method.\r\n\r\nI fixed this in the following way BUT there is a much more elegant fix, if you check in textbox they bind a global \"widget level\" event to the document, I think selectmenu should do the same, bind only once globally and then close any open menu at click time, so this way if you have 10 widgets you don't bind 10 times to the document click.\r\n\r\n\t\t// document click closes menu\r\n\t\t$(document).bind(\"mousedown.selectmenu\", function(event) {\r\n\t\t\tself.close(event);\r\n\t\t\tself._closeOthers(event);\r\n\t\t});\r\n","comments":3,"title":"Document click doesn't always close open menus","updated_at":"2011-10-18T11:27:05Z","url":"https://api.github.com/repos/fnagel/jquery-ui/issues/177","id":1907478,"assignee":null,"milestone":{"number":4,"created_at":"2011-04-16T00:09:54Z","due_on":"2011-10-20T07:00:00Z","title":"v1.2","creator":{"gravatar_id":"1dc9dbd9b78cf7e920bc7922e035f6d1","avatar_url":"https://secure.gravatar.com/avatar/1dc9dbd9b78cf7e920bc7922e035f6d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/fnagel","id":116824,"login":"fnagel"},"url":"https://api.github.com/repos/fnagel/jquery-ui/milestones/4","open_issues":2,"closed_issues":25,"description":"Bugifx and feature release. Including jQuery 1.6.2 support.","state":"open"},"closed_at":"2011-10-18T11:27:05Z","user":{"gravatar_id":"b1154ee6f19702bb38c36360d9ae8030","avatar_url":"https://secure.gravatar.com/avatar/b1154ee6f19702bb38c36360d9ae8030?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/thg2k","id":359577,"login":"thg2k"},"html_url":"https://github.com/fnagel/jquery-ui/issues/177","labels":[{"name":"bug","url":"https://api.github.com/repos/fnagel/jquery-ui/labels/bug","color":"c41818"},{"name":"needs_feedback","url":"https://api.github.com/repos/fnagel/jquery-ui/labels/needs_feedback","color":"444444"},{"name":"_selectmenu","url":"https://api.github.com/repos/fnagel/jquery-ui/labels/_selectmenu","color":"ededed"}],"state":"closed"},"legacy":{"number":177,"action":"closed","issue":1907478}}