Sha256: f41562911f799f3a16db7cb54cc8ee3abf87b2f07ec896a83b03274fae501e1d

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

/**
 * @namespace WORKAREA.klarnaPlacementRefresh
 */
WORKAREA.registerModule('klarnaPlacementRefresh', (function () {
    'use strict';

    /**
     * @method
     * @name init
     * @memberof WORKAREA.klarnaPlacementRefresh
     */
    var init = function () {
            var $placements = $('[data-klarna-placement-refresh]');

            if (_.isEmpty($placements)) { return; }

            window.KlarnaOnsiteService = window.KlarnaOnsiteService || [];
            window.KlarnaOnsiteService.push({ eventName: 'refresh-placements' });
        };

    return { init: init };
}()));

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-klarna-1.1.0 app/assets/javascripts/workarea/storefront/klarna/modules/klarna_placement_refresh.js
workarea-klarna-1.1.0.beta1 app/assets/javascripts/workarea/storefront/klarna/modules/klarna_placement_refresh.js