Войти с помощью github
Форум /

Всем привет!

Не подскажите как правильно найти элемент у блока page. Мой код выдает null:

modules.define('page', ['i-bem__dom', 'jquery'], function(provide, BEMDOM, $) {
    provide(BEMDOM.decl(this.name, {
        onSetMod: {
            'js': {
                'inited': function() {
                    var header = this.findBlockInside(this.elem('header'), this);
                    console.log('header =', header);
                }
            }
        }
    }));
});

Заранее спасибо!