Skip to content

Commit 09548c7

Browse files
author
pemrouz
committed
chore: build dist
1 parent beb70a2 commit 09548c7

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

dist/index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,16 @@ var resource = function resource(ripple) {
125125
// batch renders on render frames
126126
var batch = function batch(ripple) {
127127
return function (el) {
128-
return el.pending ? el.pending.push(ripple.change) : (el.pending = [ripple.change], requestAnimationFrame(function (d) {
129-
el.change = el.pending;
130-
delete el.pending;
131-
ripple.render(el);
132-
}));
128+
if (!el.pending) {
129+
el.pending = [];
130+
requestAnimationFrame(function (d) {
131+
el.changes = el.pending;
132+
delete el.pending;
133+
ripple.render(el);
134+
});
135+
}
136+
137+
if (ripple.change) el.pending.push(ripple.change[1]);
133138
};
134139
};
135140

0 commit comments

Comments
 (0)