Skip to content

4.3.1

Compare
Choose a tag to compare
@miripiruni miripiruni released this 19 Jan 13:40
· 628 commits to master since this release

Order of execution matches was changed. Example:

// BEMJSON: { block: 'b' }
// Template:
block('b')(
  // this.ctx.opa is undefined
  match(function() { return this.ctx.opa; })(
    content()(
      // this match will not executed because of match before
      match(function() { return true; })(function() {
        return 'nope';
      })
    )
  )
);
// Result: <div class="b"></div>