{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/553","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/553/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/553/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/553","id":100782122,"number":553,"title":"findElem больше не принимает jQuery-селектор","user":{"login":"h4","id":430023,"avatar_url":"https://avatars.githubusercontent.com/u/430023?v=3","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/documentation","name":"documentation","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-13T14:26:04Z","updated_at":"2015-08-13T21:49:46Z","closed_at":null,"body":"В i-bem из bem-bl можно было передать в качестве параметра `name` jQuery селектор. Сейчас по jsDoc можно передать только строку. Но, если всё-таки передать jQuery-селектор, например `$tab = this.findElem('tab:eq(0)');`, то всё будет работать.\r\n\r\nНо если попытаться дёрнуть `this.setMod($tab, 'state', 'current');`, то мы получим неожиданный результат — `<div class=\"tabs__tab tabs__tab:eq(0)_state_current\">`.\r\n\r\nКак минимум, стоит добавить в документацию, что использовать jQuery селектор в качестве параметра `name` теперь нельзя.\r\n\r\nВозможно, стоит сделать так, чтобы и `this.findElem('tab:eq(0)');` не находил первый элемент `tabs__tab`."},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/130857884","html_url":"https://github.com/bem/bem-forum-content-ru/issues/553#issuecomment-130857884","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/553","id":130857884,"user":{"login":"zxqfox","id":677518,"avatar_url":"https://avatars.githubusercontent.com/u/677518?v=3","gravatar_id":"","url":"https://api.github.com/users/zxqfox","html_url":"https://github.com/zxqfox","followers_url":"https://api.github.com/users/zxqfox/followers","following_url":"https://api.github.com/users/zxqfox/following{/other_user}","gists_url":"https://api.github.com/users/zxqfox/gists{/gist_id}","starred_url":"https://api.github.com/users/zxqfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxqfox/subscriptions","organizations_url":"https://api.github.com/users/zxqfox/orgs","repos_url":"https://api.github.com/users/zxqfox/repos","events_url":"https://api.github.com/users/zxqfox/events{/privacy}","received_events_url":"https://api.github.com/users/zxqfox/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T21:49:46Z","updated_at":"2015-08-13T21:49:46Z","body":"Короче, надо либо эскейпить строку, чтобы jquery не думал, что это селектор, иначе магия какая-то возникает.\r\nЛибо магию обрабатывать, чтобы `<div class=\"tabs__tab tabs__tab:eq(0)_state_current\">` не получалось.\r\n\r\nЗвучит логично, надо только понять как лучше. /cc @tadatuta @dfilatov "}}