{"action":"opened","issue":{"url":"https://api.github.com/repos/facultymatt/angular-unsavedChanges/issues/47","labels_url":"https://api.github.com/repos/facultymatt/angular-unsavedChanges/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/facultymatt/angular-unsavedChanges/issues/47/comments","events_url":"https://api.github.com/repos/facultymatt/angular-unsavedChanges/issues/47/events","html_url":"https://github.com/facultymatt/angular-unsavedChanges/issues/47","id":101704038,"number":47,"title":"Only one resettable being reset?","user":{"login":"zbend","id":1939707,"avatar_url":"https://avatars.githubusercontent.com/u/1939707?v=3","gravatar_id":"","url":"https://api.github.com/users/zbend","html_url":"https://github.com/zbend","followers_url":"https://api.github.com/users/zbend/followers","following_url":"https://api.github.com/users/zbend/following{/other_user}","gists_url":"https://api.github.com/users/zbend/gists{/gist_id}","starred_url":"https://api.github.com/users/zbend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbend/subscriptions","organizations_url":"https://api.github.com/users/zbend/orgs","repos_url":"https://api.github.com/users/zbend/repos","events_url":"https://api.github.com/users/zbend/events{/privacy}","received_events_url":"https://api.github.com/users/zbend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T17:10:52Z","updated_at":"2015-08-18T17:10:52Z","closed_at":null,"body":"I found only one of my resetables was being reset. I adjusted the code to this:\r\n\r\n    var resettables = formElement[0].querySelectorAll('[resettable],[data-resettable]');\r\n    for (var i = 0; i < resettables.length;i++) {\r\n        scope.$apply(angular.element(resettables[i]).triggerHandler('resetResettables'));    \r\n    }\r\n\r\nIt seems to work now. I didn't spend much time so let me know if I'm missing something and this is not actually needed.\r\n"}}