{"action":"created","issue":{"url":"https://api.github.com/repos/harvesthq/chosen/issues/2232","labels_url":"https://api.github.com/repos/harvesthq/chosen/issues/2232/labels{/name}","comments_url":"https://api.github.com/repos/harvesthq/chosen/issues/2232/comments","events_url":"https://api.github.com/repos/harvesthq/chosen/issues/2232/events","html_url":"https://github.com/harvesthq/chosen/issues/2232","id":57297664,"number":2232,"title":"chosen: updated does not pick up css-class.","user":{"login":"qwelyt","id":3884820,"avatar_url":"https://avatars.githubusercontent.com/u/3884820?v=3","gravatar_id":"","url":"https://api.github.com/users/qwelyt","html_url":"https://github.com/qwelyt","followers_url":"https://api.github.com/users/qwelyt/followers","following_url":"https://api.github.com/users/qwelyt/following{/other_user}","gists_url":"https://api.github.com/users/qwelyt/gists{/gist_id}","starred_url":"https://api.github.com/users/qwelyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwelyt/subscriptions","organizations_url":"https://api.github.com/users/qwelyt/orgs","repos_url":"https://api.github.com/users/qwelyt/repos","events_url":"https://api.github.com/users/qwelyt/events{/privacy}","received_events_url":"https://api.github.com/users/qwelyt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-11T10:18:13Z","updated_at":"2015-04-29T00:56:21Z","closed_at":null,"body":"TL;DR:\r\nAs can be seen in this fiddle: http://jsfiddle.net/73qm0whz/\r\n\r\nIssue:\r\nchosen: update does not pick up on changed css-classes. If a class has been added dynamically via JS and you after that do the handy $(\"#idtag\").trigger(\"chosen: updated\"); command, Chosen will not pick up the new class. It will pick up on changed options, placeholders and whatnots, but the css-class is never read."},"comment":{"url":"https://api.github.com/repos/harvesthq/chosen/issues/comments/97275547","html_url":"https://github.com/harvesthq/chosen/issues/2232#issuecomment-97275547","issue_url":"https://api.github.com/repos/harvesthq/chosen/issues/2232","id":97275547,"user":{"login":"isochronous","id":774609,"avatar_url":"https://avatars.githubusercontent.com/u/774609?v=3","gravatar_id":"","url":"https://api.github.com/users/isochronous","html_url":"https://github.com/isochronous","followers_url":"https://api.github.com/users/isochronous/followers","following_url":"https://api.github.com/users/isochronous/following{/other_user}","gists_url":"https://api.github.com/users/isochronous/gists{/gist_id}","starred_url":"https://api.github.com/users/isochronous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isochronous/subscriptions","organizations_url":"https://api.github.com/users/isochronous/orgs","repos_url":"https://api.github.com/users/isochronous/repos","events_url":"https://api.github.com/users/isochronous/events{/privacy}","received_events_url":"https://api.github.com/users/isochronous/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T00:56:21Z","updated_at":"2015-04-29T00:56:21Z","body":"Okay, I've checked in a modification that I feel is relatively elegant: isochronous/chosen@7425638b41f4b8158dd9757d7a45369ffc3f9079. For some reason the actual compiled files don't seem to get checked in, but it's a simple matter of cloning the repo, navigating into the directory via command line, and running `npm install && gem install bundler && bundle install`. I had to run `npm install -g grunt-cli` as well, but then you just run `grunt build` and you'll get the pure JS version of both jQuery and Prototype versions.  I've got to run right now but I'll check back in tomorrow and answer any questions.\r\n\r\nNote that I also updated the jasmine tests pretty extensively, but I'm unfamiliar with prototype, and the last couple of prototype tests are throwing exceptions and I'm not sure why.  The exact same tests work fine in the jQuery version though, so I'm not super concerned about it, but I would appreciate some help figuring out what the problem is before I submit a pull request to harvestHQ."}}