on master help sign in
Address review feedback
commitfe72ba21d5a8c5afc232222dadee1547c8b39b38 authorTill Schneidereit <till@tillschneidereit.net> dateTue 12 Mar 2019, 19:07 (8 years ago) parent49fdb93
1 file changed+6−6
js/change-list.js+6−6
js/change-list.js+6−6
@@ -136,8 +136,8 @@ const OP_TABLE = [
136136 const b = mem32[i++];
137137 const el = top(changeList.stack);
138138 el.addEventListener(eventType, changeList.eventHandler);
139− el["dodrio-a-" + eventType] = a;
140− el["dodrio-b-" + eventType] = b;
139+ el[`dodrio-a-${eventType}`] = a;
140+ el[`dodrio-b-${eventType}`] = b;
141141 return i;
142142 },
143143
@@ -146,8 +146,8 @@ const OP_TABLE = [
146146 const eventId = mem32[i++];
147147 const eventType = changeList.getString(eventId);
148148 const el = top(changeList.stack);
149− el["dodrio-a-" + eventType] = mem32[i++];
150− el["dodrio-b-" + eventType] = mem32[i++];
149+ el[`dodrio-a-${eventType}`] = mem32[i++];
150+ el[`dodrio-b-${eventType}`] = mem32[i++];
151151 return i;
152152 },
153153
@@ -257,8 +257,8 @@ class ChangeList {
257257 // to listen for events on, this ensures that we always get the right
258258 // values for `a` and `b`.
259259 const type = event.type;
260− const a = this["dodrio-a-" + type];
261− const b = this["dodrio-b-" + type];
260+ const a = this[`dodrio-a-${type}`];
261+ const b = this[`dodrio-b-${type}`];
262262 trampoline(event, a, b);
263263 }
264264 }