SHARE
TWEET

Untitled

a guest Jun 20th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. closeModal: function () {
  2.             var that = this;
  3.  
  4.             this._removeKeyListener();
  5.             this.options.isOpen = false;
  6.             this.modal.one(this.options.transitionEvent, function () {
  7.                 that._close();
  8.             });
  9.             this.modal.removeClass(this.options.modalVisibleClass);
  10.  
  11.             if (!this.options.transitionEvent) {
  12.                 that._close();
  13.             }
  14.  
  15.             return this.element;
  16.         },
  17.      
  18. define([
  19.     'jquery',
  20.     'Magento_Ui/js/modal/modal',
  21.     'mage/translate'
  22. ], function ($, modal, $t) {
  23.     'use strict';
  24.  
  25.     return {
  26.         closeModal: function (element) {
  27.             console.log("override works");    
  28.         }
  29.     };
  30. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top