{"action":"created","issue":{"url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/issues/288","labels_url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/issues/288/comments","events_url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/issues/288/events","html_url":"https://github.com/CoastalResilienceNetwork/GeositeFramework/issues/288","id":53566284,"number":288,"title":"2 Plugin windows active at once","user":{"login":"mmcfarland","id":1014341,"avatar_url":"https://avatars.githubusercontent.com/u/1014341?v=3","gravatar_id":"","url":"https://api.github.com/users/mmcfarland","html_url":"https://github.com/mmcfarland","followers_url":"https://api.github.com/users/mmcfarland/followers","following_url":"https://api.github.com/users/mmcfarland/following{/other_user}","gists_url":"https://api.github.com/users/mmcfarland/gists{/gist_id}","starred_url":"https://api.github.com/users/mmcfarland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmcfarland/subscriptions","organizations_url":"https://api.github.com/users/mmcfarland/orgs","repos_url":"https://api.github.com/users/mmcfarland/repos","events_url":"https://api.github.com/users/mmcfarland/events{/privacy}","received_events_url":"https://api.github.com/users/mmcfarland/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/milestones/3","html_url":"https://github.com/CoastalResilienceNetwork/GeositeFramework/milestones/Launchpad","labels_url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/milestones/3/labels","id":958456,"number":3,"title":"Launchpad","description":"","creator":{"login":"mmcfarland","id":1014341,"avatar_url":"https://avatars.githubusercontent.com/u/1014341?v=3","gravatar_id":"","url":"https://api.github.com/users/mmcfarland","html_url":"https://github.com/mmcfarland","followers_url":"https://api.github.com/users/mmcfarland/followers","following_url":"https://api.github.com/users/mmcfarland/following{/other_user}","gists_url":"https://api.github.com/users/mmcfarland/gists{/gist_id}","starred_url":"https://api.github.com/users/mmcfarland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmcfarland/subscriptions","organizations_url":"https://api.github.com/users/mmcfarland/orgs","repos_url":"https://api.github.com/users/mmcfarland/repos","events_url":"https://api.github.com/users/mmcfarland/events{/privacy}","received_events_url":"https://api.github.com/users/mmcfarland/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":13,"state":"open","created_at":"2015-01-30T15:44:28Z","updated_at":"2015-03-09T17:17:30Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-01-06T21:34:27Z","updated_at":"2015-03-09T20:23:49Z","closed_at":null,"body":"You can make a situation where 2 plugin windows are active at once.\r\n\r\n1. On a fresh page load, open the Layer Selector plugin\r\n2. Drag the window slightly to the side\r\n3. Click any other plugin\r\n4. Both plugin windows are open\r\n\r\nThis only happens when you open Layer Selector first (or maybe, the first plugin in the collection?).  Once you close and reopen the plugin, the behavior returns to normal.  If you open another plugin first (even a Layer Selector based plugin), the behavior is correct.\r\n\r\nI think this is an issue with the ``select`` [link](https://github.com/CoastalResilienceNetwork/GeositeFramework/blob/master/src/GeositeFramework/js/lib/backbone.picky.js#L125) method of backbone.picky.  It appears the event is not available right away, and it throws and suppresses an exception which prevents the following line of code from getting executed:\r\n\r\n```js \r\nthis.collection.select(this);\r\n``` \r\n[link](https://github.com/CoastalResilienceNetwork/GeositeFramework/blob/master/src/GeositeFramework/js/lib/backbone.picky.js#L128)\r\n\r\n leaving the collection thinking that no items in the collection are selected.\r\n\r\nThis issue seems like it's been around a while."},"comment":{"url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/issues/comments/77934225","html_url":"https://github.com/CoastalResilienceNetwork/GeositeFramework/issues/288#issuecomment-77934225","issue_url":"https://api.github.com/repos/CoastalResilienceNetwork/GeositeFramework/issues/288","id":77934225,"user":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T20:23:49Z","updated_at":"2015-03-09T20:23:49Z","body":"Commenting out [this line](https://github.com/CoastalResilienceNetwork/GeositeFramework/blob/master/src/GeositeFramework/plugins/layer_selector/ui.js#L38) keeps the layer selector open when another plug-in is activated, even if all the layer loading is complete. Not sure why that is yet."}}