{"action":"closed","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3189","labels_url":"https://api.github.com/repos/select2/select2/issues/3189/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3189/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3189/events","html_url":"https://github.com/select2/select2/issues/3189","id":64020622,"number":3189,"title":"data-* attributes not all working","user":{"login":"Karmalakas","id":3602819,"avatar_url":"https://avatars.githubusercontent.com/u/3602819?v=3","gravatar_id":"","url":"https://api.github.com/users/Karmalakas","html_url":"https://github.com/Karmalakas","followers_url":"https://api.github.com/users/Karmalakas/followers","following_url":"https://api.github.com/users/Karmalakas/following{/other_user}","gists_url":"https://api.github.com/users/Karmalakas/gists{/gist_id}","starred_url":"https://api.github.com/users/Karmalakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karmalakas/subscriptions","organizations_url":"https://api.github.com/users/Karmalakas/orgs","repos_url":"https://api.github.com/users/Karmalakas/repos","events_url":"https://api.github.com/users/Karmalakas/events{/privacy}","received_events_url":"https://api.github.com/users/Karmalakas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T15:11:01Z","updated_at":"2015-03-26T20:54:35Z","closed_at":"2015-03-26T20:54:35Z","body":"Didn't have enough time to check them all, but `templateResult` definitely doesn't work. I have\r\n\r\n```\r\nfunction doSomeStuff() {\r\n    console.log('stuff');\r\n}\r\n```\r\n\r\nand I have `<select class=\"select2\" style=\"width: 400px\" data-ajax--url=\"/url\" data-placeholder=\"Select\" data-template-result=\"doSomeStuff\">`. I get `Uncaught TypeError: string is not a function`. I believe it can be fixed using `window[templateResult]` or something like that."}}