Skip to content

Commit 53a44d8

Browse files
committed
Remove chaining return values so we don't make #1 impossible (yet?)
1 parent 5363bf0 commit 53a44d8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export default function mitt(all) {
1616
*/
1717
on(type, handler) {
1818
(all[type] || (all[type] = [])).push(handler);
19-
return ret;
2019
},
2120

2221
/**
@@ -30,7 +29,6 @@ export default function mitt(all) {
3029
off(type, handler) {
3130
let e = all[type] || (all[type] = []);
3231
e.splice(e.indexOf(handler) >>> 0, 1);
33-
return ret;
3432
},
3533

3634
/**
@@ -45,7 +43,6 @@ export default function mitt(all) {
4543
emit(type, evt) {
4644
(all[type] || []).map((handler) => { handler(evt); });
4745
(all['*'] || []).map((handler) => { handler(type, evt); });
48-
return ret;
4946
}
5047
};
5148
}

0 commit comments

Comments
 (0)