{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-xjst/issues/99","labels_url":"https://api.github.com/repos/bem/bem-xjst/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-xjst/issues/99/comments","events_url":"https://api.github.com/repos/bem/bem-xjst/issues/99/events","html_url":"https://github.com/bem/bem-xjst/issues/99","id":104857269,"number":99,"title":"wrong `isLast()` result","user":{"login":"mishanga","id":521273,"avatar_url":"https://avatars.githubusercontent.com/u/521273?v=3","gravatar_id":"","url":"https://api.github.com/users/mishanga","html_url":"https://github.com/mishanga","followers_url":"https://api.github.com/users/mishanga/followers","following_url":"https://api.github.com/users/mishanga/following{/other_user}","gists_url":"https://api.github.com/users/mishanga/gists{/gist_id}","starred_url":"https://api.github.com/users/mishanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishanga/subscriptions","organizations_url":"https://api.github.com/users/mishanga/orgs","repos_url":"https://api.github.com/users/mishanga/repos","events_url":"https://api.github.com/users/mishanga/events{/privacy}","received_events_url":"https://api.github.com/users/mishanga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-xjst/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T09:28:39Z","updated_at":"2015-09-04T09:56:35Z","closed_at":null,"body":"### template\r\n```javascript\r\nblock('z-weather').elem('tile')(\r\n    match(function() { return !this.mods.layout; })\r\n        .tag()('td'),\r\n    match(function() { return this.isLast(); })\r\n        .mix()({ elemMods: { position: 'last' } })\r\n);\r\n```\r\n\r\n### bemjson\r\n```javascript\r\n[{\r\n    tag: 'table',\r\n    content: {\r\n        block: 'z-weather',\r\n        tag: 'tr',\r\n        content: [\r\n            { elem: 'tile', content: 'cell' },\r\n            { elem: 'tile', content: 'last cell' }\r\n        ]\r\n    }\r\n},\r\n{\r\n    block: 'z-weather',\r\n    elem: 'tile',\r\n    mods: { layout: 'yes' },\r\n    content: 'with layout mode'\r\n},\r\n{\r\n    block: 'z-weather',\r\n    elem: 'tile',\r\n    mods: { layout: 'yes' },\r\n    content: 'Last with layout mode'\r\n}];\r\n```\r\n\r\n### expected result\r\n```html\r\n<table>...</table>\r\n<div class=\"z-weather__tile z-weather__tile_layout_yes\">with layout mode</div>\r\n<div class=\"z-weather__tile z-weather__tile_layout_yes z-weather__tile_position_last\">Last with layout mode</div>\r\n```\r\n\r\n### actual result\r\n```html\r\n<table>...</table>\r\n<div class=\"z-weather__tile z-weather__tile_layout_yes z-weather__tile_position_last\">with layout mode</div>\r\n<div class=\"z-weather__tile z-weather__tile_layout_yes\">Last with layout mode</div>\r\n```"},"comment":{"url":"https://api.github.com/repos/bem/bem-xjst/issues/comments/137693654","html_url":"https://github.com/bem/bem-xjst/issues/99#issuecomment-137693654","issue_url":"https://api.github.com/repos/bem/bem-xjst/issues/99","id":137693654,"user":{"login":"mishanga","id":521273,"avatar_url":"https://avatars.githubusercontent.com/u/521273?v=3","gravatar_id":"","url":"https://api.github.com/users/mishanga","html_url":"https://github.com/mishanga","followers_url":"https://api.github.com/users/mishanga/followers","following_url":"https://api.github.com/users/mishanga/following{/other_user}","gists_url":"https://api.github.com/users/mishanga/gists{/gist_id}","starred_url":"https://api.github.com/users/mishanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishanga/subscriptions","organizations_url":"https://api.github.com/users/mishanga/orgs","repos_url":"https://api.github.com/users/mishanga/repos","events_url":"https://api.github.com/users/mishanga/events{/privacy}","received_events_url":"https://api.github.com/users/mishanga/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T09:56:35Z","updated_at":"2015-09-04T09:56:35Z","body":"В простом случае, когда просто массив из двух и более элементов, не воспроизводится."}}