{"action":"created","issue":{"url":"https://api.github.com/repos/silviomoreto/bootstrap-select/issues/769","labels_url":"https://api.github.com/repos/silviomoreto/bootstrap-select/issues/769/labels{/name}","comments_url":"https://api.github.com/repos/silviomoreto/bootstrap-select/issues/769/comments","events_url":"https://api.github.com/repos/silviomoreto/bootstrap-select/issues/769/events","html_url":"https://github.com/silviomoreto/bootstrap-select/issues/769","id":46365318,"number":769,"title":"JS Error in IE8","user":{"login":"adick","id":3079024,"avatar_url":"https://avatars.githubusercontent.com/u/3079024?v=3","gravatar_id":"","url":"https://api.github.com/users/adick","html_url":"https://github.com/adick","followers_url":"https://api.github.com/users/adick/followers","following_url":"https://api.github.com/users/adick/following{/other_user}","gists_url":"https://api.github.com/users/adick/gists{/gist_id}","starred_url":"https://api.github.com/users/adick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adick/subscriptions","organizations_url":"https://api.github.com/users/adick/orgs","repos_url":"https://api.github.com/users/adick/repos","events_url":"https://api.github.com/users/adick/events{/privacy}","received_events_url":"https://api.github.com/users/adick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-10-21T08:03:09Z","updated_at":"2015-03-09T20:54:18Z","closed_at":null,"body":"There is an error in the htmlEscape function; IE8 says \r\n\r\n````\r\nMessage: Object doesn't support this property or method\r\nLine: 63\r\nChar: 5\r\nCode: 0\r\nURI: bootstrap-select/js/bootstrap-select.js\r\n````\r\n\r\nLine 63 is\r\n\r\n``\r\nvar source = '(?:' + Object.keys(escapeMap).join('|') + ')',\r\n``\r\n\r\n\r\nSolution would be to add a polyfill for browsers that don't support Object.keys()\r\n\r\n````\r\nObject.keys = Object.keys || function(\r\n\to, // object\r\n\tk, // key\r\n\tr  // result array\r\n) {\r\n\t// initialize object and result\r\n\tr = [];\r\n\t// iterate over object keys\r\n\tfor (k in o)\r\n\t\t// fill result array with non-prototypical keys\r\n\t\tr.hasOwnProperty.call(o, k) && r.push(k);\r\n\t// return result\r\n\treturn r\r\n};\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/silviomoreto/bootstrap-select/issues/comments/77940167","html_url":"https://github.com/silviomoreto/bootstrap-select/issues/769#issuecomment-77940167","issue_url":"https://api.github.com/repos/silviomoreto/bootstrap-select/issues/769","id":77940167,"user":{"login":"SnehaSuryawanshi","id":745032,"avatar_url":"https://avatars.githubusercontent.com/u/745032?v=3","gravatar_id":"","url":"https://api.github.com/users/SnehaSuryawanshi","html_url":"https://github.com/SnehaSuryawanshi","followers_url":"https://api.github.com/users/SnehaSuryawanshi/followers","following_url":"https://api.github.com/users/SnehaSuryawanshi/following{/other_user}","gists_url":"https://api.github.com/users/SnehaSuryawanshi/gists{/gist_id}","starred_url":"https://api.github.com/users/SnehaSuryawanshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnehaSuryawanshi/subscriptions","organizations_url":"https://api.github.com/users/SnehaSuryawanshi/orgs","repos_url":"https://api.github.com/users/SnehaSuryawanshi/repos","events_url":"https://api.github.com/users/SnehaSuryawanshi/events{/privacy}","received_events_url":"https://api.github.com/users/SnehaSuryawanshi/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T20:54:18Z","updated_at":"2015-03-09T20:54:18Z","body":"Saved big time! thanks!!"}}