Add supporting themes required for Lotusdocs
This commit is contained in:
1 parent
8a4d04db58
commit
f8d40c4e41
1289 files changed
+234948
No files matched your search
@@ -0,0 +1,15 @@
|
||||
export default function debounce(fn) {
|
||||
var pending;
|
||||
return function () {
|
||||
if (!pending) {
|
||||
pending = new Promise(function (resolve) {
|
||||
Promise.resolve().then(function () {
|
||||
pending = undefined;
|
||||
resolve(fn());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return pending;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user