@@ -2,8 +2,6 @@ import 'foundation-sites/js/foundation/foundation';
2
2
import 'foundation-sites/js/foundation/foundation.reveal' ;
3
3
import nod from './common/nod' ;
4
4
import PageManager from './page-manager' ;
5
- import { api } from '@bigcommerce/stencil-utils' ;
6
- import { defaultModal } from './global/modal' ;
7
5
8
6
export default class WishList extends PageManager {
9
7
constructor ( context ) {
@@ -59,29 +57,6 @@ export default class WishList extends PageManager {
59
57
} ) ;
60
58
}
61
59
62
- wishListHandler ( ) {
63
- $ ( 'body' ) . on ( 'click' , '[data-wishlist]' , event => {
64
- const wishListUrl = event . currentTarget . href ;
65
- const modal = defaultModal ( ) ;
66
-
67
- event . preventDefault ( ) ;
68
-
69
- modal . open ( ) ;
70
-
71
- api . getPage ( wishListUrl , this . options , ( err , content ) => {
72
- if ( err ) {
73
- return modal . updateContent ( err ) ;
74
- }
75
-
76
- modal . updateContent ( content , { wrap : true } ) ;
77
-
78
- const $wishlistForm = $ ( '.wishlist-form' , modal . $content ) ;
79
-
80
- this . registerAddWishListValidation ( $wishlistForm ) ;
81
- } ) ;
82
- } ) ;
83
- }
84
-
85
60
onReady ( ) {
86
61
const $addWishListForm = $ ( '.wishlist-form' ) ;
87
62
@@ -90,6 +65,5 @@ export default class WishList extends PageManager {
90
65
}
91
66
92
67
this . wishlistDeleteConfirm ( ) ;
93
- this . wishListHandler ( ) ;
94
68
}
95
69
}
0 commit comments