diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-17 12:12:22 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-17 12:12:22 +0300 |
| commit | 68fc9e55e538e03f94509731ab41a0c8cf96710f (patch) | |
| tree | 3edb1e81864ac3eb35ba0fe8087ed24da1b812bf /html/assets/js/utils/throttle.js | |
| parent | 84b2da85a1b452922dadb6a609533b9945afe51d (diff) | |
| download | classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.gz classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.bz2 classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.zip | |
setup a real server environment (apache DocumentRoot=/var/www/public)
Diffstat (limited to 'html/assets/js/utils/throttle.js')
| -rw-r--r-- | html/assets/js/utils/throttle.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/html/assets/js/utils/throttle.js b/html/assets/js/utils/throttle.js deleted file mode 100644 index ccfc9a7..0000000 --- a/html/assets/js/utils/throttle.js +++ /dev/null @@ -1,15 +0,0 @@ -define(function () {
- return function (func, limit) {
- var timeout;
- var inThrottle;
- return function () {
- var context = this, args = arguments;
- if (!inThrottle) {
- func.apply(context, args);
- inThrottle = true;
- }
- setTimeout(() => inThrottle = false, limit);
-
- };
- };
-});
|
