浏览代码

minor cleanup

Falko Schindler 2 年之前
父节点
当前提交
4499d4644a
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      nicegui/templates/index.html

+ 0 - 1
nicegui/templates/index.html

@@ -54,7 +54,6 @@
         Object.values(element.events).forEach((event) => {
         Object.values(element.events).forEach((event) => {
           let event_name = 'on' + event.type[0].toLocaleUpperCase() + event.type.substring(1);
           let event_name = 'on' + event.type[0].toLocaleUpperCase() + event.type.substring(1);
           event.specials.forEach(s => event_name += s[0].toLocaleUpperCase() + s.substring(1));
           event.specials.forEach(s => event_name += s[0].toLocaleUpperCase() + s.substring(1));
-          const throttler = {active: false};
           let handler = (e) => {
           let handler = (e) => {
             const all = typeof e !== 'object' || event.args.includes('*');
             const all = typeof e !== 'object' || event.args.includes('*');
             const args = all ? e : Object.fromEntries(event.args.map(a => [a, e[a]]));
             const args = all ? e : Object.fromEntries(event.args.map(a => [a, e[a]]));