Skip to content

Commit

Permalink
Пропускаем неопределённые блоки при обработке события
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyten committed Oct 7, 2014
1 parent 39ada85 commit e46996b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/nanoblocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,13 @@ var nb = nb || {};

// Мы собрали в nodes все ноды внутри блока с именем name.
factory = Factory.get(blockName);

// Событие может случится до того, как мы определим все наноблоки.
// пропустим такой блок
if (!factory) {
continue;
}

// Берем все события, на которые подписан этот блок.
var mixinEvents = factory.events;

Expand Down

0 comments on commit e46996b

Please sign in to comment.