{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/2977","repository_url":"https://api.github.com/repos/jquery/jquery","labels_url":"https://api.github.com/repos/jquery/jquery/issues/2977/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/2977/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/2977/events","html_url":"https://github.com/jquery/jquery/issues/2977","id":139239904,"number":2977,"title":"Unintended/redundant onload event in 2.2.1","user":{"login":"alecpl","id":546788,"avatar_url":"https://avatars.githubusercontent.com/u/546788?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpl","html_url":"https://github.com/alecpl","followers_url":"https://api.github.com/users/alecpl/followers","following_url":"https://api.github.com/users/alecpl/following{/other_user}","gists_url":"https://api.github.com/users/alecpl/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpl/subscriptions","organizations_url":"https://api.github.com/users/alecpl/orgs","repos_url":"https://api.github.com/users/alecpl/repos","events_url":"https://api.github.com/users/alecpl/events{/privacy}","received_events_url":"https://api.github.com/users/alecpl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-08T10:33:48Z","updated_at":"2016-03-08T10:57:28Z","closed_at":null,"body":"I migrated from 2.1.4 to 2.2.1 and found a strange issue. Sorry, I can't provide a simple code to reproduce, but maybe you'll find out what's going on. Steps:\r\n1. Open a jQuery-UI (1.10.4) dialog with a few tabs.\r\n2. In one tab I have an upload form with hidden iframe. In more detail, the iframe is created ad-hoc on \"Upload\" button click. Something like:\r\n```\r\n$('<iframe>').attr(...).appendTo(document.body).on('load', {some:data}, onload_fn);\r\n$(form).attr({target: frame_name, ...}).submit();\r\n```\r\n3. When I click the \"Upload\" button the form is submitted and all is fine, but...\r\n4. When I then select any other tab the onload_fn is executed once again. Only once, switching tabs does not execute the onload again... until I create another iframe.\r\n\r\nWhat's more the redundant event is also executed when I just close the dialog, so tabs may be not required to reproduce the issue."},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/193728029","html_url":"https://github.com/jquery/jquery/issues/2977#issuecomment-193728029","issue_url":"https://api.github.com/repos/jquery/jquery/issues/2977","id":193728029,"user":{"login":"alecpl","id":546788,"avatar_url":"https://avatars.githubusercontent.com/u/546788?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpl","html_url":"https://github.com/alecpl","followers_url":"https://api.github.com/users/alecpl/followers","following_url":"https://api.github.com/users/alecpl/following{/other_user}","gists_url":"https://api.github.com/users/alecpl/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpl/subscriptions","organizations_url":"https://api.github.com/users/alecpl/orgs","repos_url":"https://api.github.com/users/alecpl/repos","events_url":"https://api.github.com/users/alecpl/events{/privacy}","received_events_url":"https://api.github.com/users/alecpl/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T10:57:28Z","updated_at":"2016-03-08T10:57:28Z","body":"Reproduceable with recent Firefox and Chromium, not tested other browsers. I can add that the event argument of the function looks the same, in Chrome it differs only in timeStamp value (in Firefox it's 0 for both)."}}