/**
 * Copyright © 2016 maijindou.com All rights reserved.
 * See COPYING.txt for license details.
 */
/*global define*/
define(
    [
        'uiComponent',
        'ko',
        'jquery',
        'Magento_Checkout/js/model/sidebar'
    ],
    function(Component, ko, $, sidebarModel) {
        'use strict';
        return Component.extend({
            setModalElement: function(element) {
                sidebarModel.setPopup($(element));
            }
        });
    }
);
