Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement