Fix a raw file error caused by facebook CDN violating RFC 2616

This commit is contained in:
Calvin Montgomery 2018-01-21 18:53:16 -08:00
parent e7781b5c09
commit aeab31825e
4 changed files with 26 additions and 4 deletions

7
src/util/call-once.js Normal file
View file

@ -0,0 +1,7 @@
export function callOnce(fn) {
let called = false;
return (...args) => {
called || fn(...args), called = true;
}
}