{"action":"closed","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3525","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3525/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3525/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3525/events","html_url":"https://github.com/openlayers/ol3/issues/3525","id":67165457,"number":3525,"title":"bindInputs code broke between 3.3.0 and 3.4.0","user":{"login":"gnatwilson","id":11856721,"avatar_url":"https://avatars.githubusercontent.com/u/11856721?v=3","gravatar_id":"","url":"https://api.github.com/users/gnatwilson","html_url":"https://github.com/gnatwilson","followers_url":"https://api.github.com/users/gnatwilson/followers","following_url":"https://api.github.com/users/gnatwilson/following{/other_user}","gists_url":"https://api.github.com/users/gnatwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/gnatwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnatwilson/subscriptions","organizations_url":"https://api.github.com/users/gnatwilson/orgs","repos_url":"https://api.github.com/users/gnatwilson/repos","events_url":"https://api.github.com/users/gnatwilson/events{/privacy}","received_events_url":"https://api.github.com/users/gnatwilson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-08T16:16:43Z","updated_at":"2015-04-08T16:30:08Z","closed_at":"2015-04-08T16:30:08Z","body":"I'm really enjoying OL3, the user experience is very good and it's easy to add new layers and tools to the interface.\r\n\r\nWith 3.4.0, code I borrowed from your layer-group.js has broken.  The map interface breaks with an error that an ol.dom.Input is undefined at the following lines:\r\n\r\nfunction bindInputs(layerid, layer) {\r\n  new ol.dom.Input($(layerid + ' .visible')[0])\r\n      .bindTo('checked', layer, 'visible');\r\n}\r\n\r\nmap.getLayers().forEach(function(layer, i) {\r\n  bindInputs('#layer' + i, layer);\r\n});\r\n\r\nI reverted to using 3.3.0 and the all is fine.  Any help is appreciated."}}