bem / bem-templates-converter

BEM Templates Converter: BEMHTML to BEMHML.js, BEMHTML to BH
2 stars 1 forks source link

empty string to undefined #3

Open miripiruni opened 8 years ago

miripiruni commented 8 years ago
block('misspell').elem('link').def()(function() {
  return applyCtx(this.extend(this.ctx, {
    block: 'link',
    elem: ''
  }));
});

to

block('misspell').elem('link').def()(function() {
  return applyCtx(this.extend(this.ctx, {
    block: 'link',
    elem: undefined
  }));
});
blond commented 8 years ago

It has been fixed in https://github.com/bem/bem-xjst/issues/152.