Skip to content

Commit 34c7224

Browse files
committed
fixed cadence bug I introduced in the last release
I also attached the getValidInsertionPoints function to the zones API
1 parent 6f88a51 commit 34c7224

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ function distributeZones(locker) {
2323
resolve("zones-loaded")
2424
});
2525

26-
// Set up the communication bridge
26+
// Add the communication bridge and vip method to the zones API
2727
locker.getYozonsLocker("zones").changes = zones.changes;
28+
locker.getYozonsLocker("zones").getValidInsertionPoints = zones.getValidInsertionPoints;
2829
});
2930
}
3031

lib/zones.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@ export function getValidInsertionPoints() {
217217

218218
export function distribute(tick = 4) {
219219
const vips = getValidInsertionPoints();
220+
const cadence = tick;
220221

221222
map.forEach(zone => {
222223
zone.vip = vips[tick];
223-
tick += tick;
224+
tick += cadence;
224225
});
225226
}
226227

0 commit comments

Comments
 (0)