All Questions
7
questions
1
vote
0
answers
25
views
Creating a reusable plugin (Dialog/Notifier as example)
I started working on a notification system that is pluggable into any project. I have not made any "plugin" type javascript libraries, usually just functions very specific to the project at hand. That ...
2
votes
0
answers
27
views
UI Event Flow class
Purpose:
I wanted a way to improve event clarity and event code organization. I
observed that every single event flow went through the following
steps:
Trigger -> UI Change -> (Async) ...
5
votes
2
answers
160
views
Event emitter npm module
I was asked to complete the task described below:
Event Emitters are objects that serve as the core building block in event-driven architectures. They simplify the process of handling asynchronous
...
2
votes
2
answers
1k
views
addEventListener after fetched data
This is working code, but I want to simplify, correct, and improve the code.
...
3
votes
1
answer
48
views
JavaScript idle managing structure
I am just getting into the world of javascript, coming from the world of classical inheritance. The following is a library I wrote to track when a webapp is idling and I wrote it like I write ...
3
votes
1
answer
7k
views
Inactivity Timeout
I made this piece of code to detect inactivity on different aspects of my app. It is part of a set of pieces to analyze user behavior.
Not saying it's ugly, but good looking constructive criticism to ...
5
votes
1
answer
6k
views
Remove an event listener after firing once or any number of times
Remove an event listener after firing once or any number of times
This is what I have:
...