Skip to content

Commit 4047ba6

Browse files
committed
Merge branch 'develop'
2 parents 7a81b13 + e6449c3 commit 4047ba6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

lib/story.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*/

lib/zones.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

198198
export 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

0 commit comments

Comments
 (0)