{"action":"created","issue":{"url":"https://api.github.com/repos/blueriver/MuraCMS/issues/1797","labels_url":"https://api.github.com/repos/blueriver/MuraCMS/issues/1797/labels{/name}","comments_url":"https://api.github.com/repos/blueriver/MuraCMS/issues/1797/comments","events_url":"https://api.github.com/repos/blueriver/MuraCMS/issues/1797/events","html_url":"https://github.com/blueriver/MuraCMS/issues/1797","id":59812749,"number":1797,"title":"`mura-async-object` implementation issues","user":{"login":"al3x-edge","id":62131,"avatar_url":"https://avatars.githubusercontent.com/u/62131?v=3","gravatar_id":"","url":"https://api.github.com/users/al3x-edge","html_url":"https://github.com/al3x-edge","followers_url":"https://api.github.com/users/al3x-edge/followers","following_url":"https://api.github.com/users/al3x-edge/following{/other_user}","gists_url":"https://api.github.com/users/al3x-edge/gists{/gist_id}","starred_url":"https://api.github.com/users/al3x-edge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al3x-edge/subscriptions","organizations_url":"https://api.github.com/users/al3x-edge/orgs","repos_url":"https://api.github.com/users/al3x-edge/repos","events_url":"https://api.github.com/users/al3x-edge/events{/privacy}","received_events_url":"https://api.github.com/users/al3x-edge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T15:25:02Z","updated_at":"2015-03-05T02:39:30Z","closed_at":null,"body":"Creating issue due to issues after recent upgrade. Usually I check all files that have been changed in the upgrade in absence of a change log. Mura returned that no files have been changed and I just ignored it. Now this morning we noticed that some of our acceptance tests were failing.  Some of our javascript has broken due to the implementation of ajax with the form-builder.\r\n\r\n@mattlevine / @stevewithington Can you update on what this effects? Would we be opposed to a javascript event being fired after each process ([global.js#L1112](https://github.com/blueriver/MuraCMS/blob/c8574f2ac42b3cbaaa2471dad63bf8c137ebfef1/default/js/global.js#L1112))?"},"comment":{"url":"https://api.github.com/repos/blueriver/MuraCMS/issues/comments/77295838","html_url":"https://github.com/blueriver/MuraCMS/issues/1797#issuecomment-77295838","issue_url":"https://api.github.com/repos/blueriver/MuraCMS/issues/1797","id":77295838,"user":{"login":"mattlevine","id":836225,"avatar_url":"https://avatars.githubusercontent.com/u/836225?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlevine","html_url":"https://github.com/mattlevine","followers_url":"https://api.github.com/users/mattlevine/followers","following_url":"https://api.github.com/users/mattlevine/following{/other_user}","gists_url":"https://api.github.com/users/mattlevine/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlevine/subscriptions","organizations_url":"https://api.github.com/users/mattlevine/orgs","repos_url":"https://api.github.com/users/mattlevine/repos","events_url":"https://api.github.com/users/mattlevine/events{/privacy}","received_events_url":"https://api.github.com/users/mattlevine/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T02:39:30Z","updated_at":"2015-03-05T02:39:30Z","body":"Please consider this alpha, but If you update your site files you can now do this:\r\n\r\nThe first example is registering an object based event handler with function that represent event to listen for.\r\n\r\n```\r\n<script>               \r\n       mura.addEventHandler(\r\n\t\t\t{\r\n\t\t\t\tasyncObjectRendered:function(){\r\n\t\t\t\t\talert($(this).html());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n</script\r\n```\r\n\r\nOr this:\r\n\r\nYou can simply register a single anonymous function to handle a specific event\r\n```\r\n<script>\r\n\t\tmura.addEventHandler('asyncObjectRendered',\r\n\t\t\tfunction(){\r\n\t\t\t\talert($(this).html());\r\n\t\t\t}\r\n\t\t);\r\n</script>\r\n```\r\n\r\nThis opens it up for in the future have events that target on specific form Type/Subtype combinations perhaps 'asyncFormWidgetRenderered' of something like that.   We can also add a event object that can contain more mura specific details about what kind of object is being rendered or action is happening.\r\n\r\n I'm truly sorry for any head that the update caused."}}