Skip to main content

All 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 ...
darcher's user avatar
  • 724
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) ...
Shelby115's user avatar
  • 1,961
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 ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
2 votes
2 answers
1k views

addEventListener after fetched data

This is working code, but I want to simplify, correct, and improve the code. ...
user348246's user avatar
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 ...
mattNit's user avatar
  • 33
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 ...
rnrneverdies's user avatar
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: ...
XP1's user avatar
  • 151