{"action":"opened","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/215","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/215/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/215/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/215","id":56911843,"number":215,"title":"Динамическое добавление блоков на страницу","user":{"login":"kuflash","id":815876,"avatar_url":"https://avatars.githubusercontent.com/u/815876?v=3","gravatar_id":"","url":"https://api.github.com/users/kuflash","html_url":"https://github.com/kuflash","followers_url":"https://api.github.com/users/kuflash/followers","following_url":"https://api.github.com/users/kuflash/following{/other_user}","gists_url":"https://api.github.com/users/kuflash/gists{/gist_id}","starred_url":"https://api.github.com/users/kuflash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuflash/subscriptions","organizations_url":"https://api.github.com/users/kuflash/orgs","repos_url":"https://api.github.com/users/kuflash/repos","events_url":"https://api.github.com/users/kuflash/events{/privacy}","received_events_url":"https://api.github.com/users/kuflash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-07T13:49:41Z","updated_at":"2015-02-07T13:49:41Z","closed_at":null,"body":"Привет всем! В общем хочу динамически добавлять блоки на страницу. Использую этот пример из документации: [Динамическое обновление блоков и элементов в DOM-дереве](http://ru.bem.info/technology/i-bem/v2/i-bem-js/#Динамическое-обновление-блоков-и-элементов-в-dom-дереве-2). Вот мой код:\r\n```\r\nmodules.define('search-form', ['BEMHTML', 'i-bem__dom'], function(provide, BEMHTML, BEMDOM) {\r\n\tprovide(BEMDOM.decl(this.name, {\r\n\t\t\tquery : \"\",\r\n\r\n\t\t\tcities : [],\r\n\r\n\t\t\tonSetMod: {\r\n\t\t\t\tjs: {\r\n\t\t\t\t\tinited : function() {\r\n\t\t\t\t\t\tthis.findBlockInside('input').on('change', this._onChange, this);\r\n\t\t\t\t\t\tconsole.log(BEMDOM.append(\r\n\t\t\t\t\t\t\tthis.domElem,\r\n\t\t\t\t\t\t\tBEMHTML.apply({\r\n\t\t\t\t\t\t\t\tblock : 'button',\r\n                                text : 'Кнопка'\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\t_onChange : function (event) {\r\n\t\t\t\tthis.query = event.target._val;\r\n\t\t\t\tif (this.query.length < 2) return;\r\n      },\r\n\r\n\t\t\t_filterCities : function (city) {\r\n\t\t\t\treturn city.toLowerCase().indexOf(this.query.toLowerCase()) === 0;\r\n\t\t\t}\r\n\t\t},\r\n\t\t{}\r\n\t));\r\n});\r\n```\r\nНо блок просто не добавляется. Что я не так делаю?"}}