<commit_before>modules.define('tabs', ['i-bem__dom', 'jquery'], function(provide, BEMDOM, $) {

  provide(BEMDOM.decl(this.name,
    {
      onSetMod: {
        'js': {
          'inited': function() {
            this.findBlockInside('radio-group').on('change', function (e) {
              var active = $(this.elem('tab')[e.target.getVal()])

              this.delMod(this.elem('tab'), 'active')
              this.setMod(active, 'active')

              var image = this.findBlockInside(active, 'image').domElem

              if (image && !image.attr('src')) {
                image.attr('src', image.attr('data-src'))
              }
            }, this)
          }
        }
      }
    })
  )
})
<commit_msg>fix(tabs): use jquery api to get image block<commit_after>modules.define('tabs', ['i-bem__dom', 'jquery'], function(provide, BEMDOM, $) {

  provide(BEMDOM.decl(this.name,
    {
      onSetMod: {
        'js': {
          'inited': function() {
            this.findBlockInside('radio-group').on('change', function (e) {
              var active = $(this.elem('tab')[e.target.getVal()])

              this.delMod(this.elem('tab'), 'active')
              this.setMod(active, 'active')

              var image = active.children('.image')

              if (image && !image.attr('src')) {
                image.attr('src', image.attr('data-src'))
              }
            }, this)
          }
        }
      }
    })
  )
})

{'fraction_non_alphanumeric': 0.18131487889273357, 'fraction_numerical': 0.0, 'mean_word_length': 1.7861271676300579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4663613', 'n_tokens_mistral': 458, 'n_tokens_neox': 441, 'n_words': 66}