<commit_before>/*jslint browser:true */
/*jshint browser:true, jquery:true */

(function ($) {
    'use strict';

    $.lazyLoadXT.selector += ',[data-bg]';

    $(document).on('lazyshow', function () {
        var $this = $(this);
        $this
            .css('background-image', "url('" + $this.attr('data-bg') + "')")
            .removeAttr('data-bg');
    });

})(window.jQuery || window.Zepto);<commit_msg>background addon: support $.lazyLoadXT.bgAttr attribute, fix $this definition to e.target<commit_after>/*jslint browser:true, plusplus:true, vars:true */
/*jshint browser:true, jquery:true */

(function ($) {
    'use strict';

    var options = $.lazyLoadXT,
        bgAttr = options.bgAttr || 'data-bg';

    options.selector += ',[' + bgAttr + ']';

    $(document).on('lazyshow', function (e) {
        var $this = $(e.target);
        $this
            .css('background-image', "url('" + $this.attr(bgAttr) + "')")
            .removeAttr(bgAttr);
    });

})(window.jQuery || window.Zepto);
{'fraction_non_alphanumeric': 0.2089108910891089, 'fraction_numerical': 0.0, 'mean_word_length': 2.8735632183908044, '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': '6483089', 'n_tokens_mistral': 345, 'n_tokens_neox': 335, 'n_words': 61}