File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,13 @@ export async function render(locker) {
2929 // Ignore these zones
3030 zones . ignore ( "zone-el-16" ) ;
3131
32- // Combo zone cleanup until WPS can be updated
32+ // Cleanup that needs to move to WPS
3333 zones . forEach ( zone => zone . classList . remove ( "cap-width" ) ) ;
3434 combos . forEach ( ele => ele . remove ( ) ) ;
3535
36+ const related = document . querySelectorAll ( ".related-stories" ) ;
37+ related . forEach ( ele => ele . parentElement . classList . remove ( "zone" , "grid" ) ) ;
38+
3639 /*
3740 * Subscriber changes
3841 */
Original file line number Diff line number Diff line change @@ -191,11 +191,17 @@ export function get(id) {
191191}
192192
193193/*
194- * Ignores a zone in the map
194+ * Ignores a zone in the map and cleans up
195195 * @param id {string} the id for the zone
196196 */
197197
198198export function ignore ( id ) {
199+ let z = map . get ( id ) ;
200+
201+ if ( z ) {
202+ z . classList . remove ( "zone" ) ;
203+ }
204+
199205 map . delete ( id ) ;
200206}
201207
You can’t perform that action at this time.
0 commit comments