Showing members, allowing window resize
This commit is contained in:
@@ -1084,7 +1084,7 @@ HTMLElement.prototype.onTap = function(cb) {
|
||||
- We can't just put a listener on the element, because a window "navigate" event won't trigger it
|
||||
- We can't just put a listener on the window, because the "this" variable will only refer to the window
|
||||
- And, if we try to re-add that scope using bind(), it makes the return value of .toString() unreadable, which means we cannot detect duplicate listeners.
|
||||
- Therefore, we attach a global navigate event to the window, and each navigate event in this array, and manually trigger each event when the global one fires.
|
||||
- Therefore, we attach a global navigate event to the window, and store each navigate event in this navigateListeners array, and manually trigger each event on the elements when the global one fires.
|
||||
*/
|
||||
navigateListeners = []
|
||||
window.addEventListener("navigate", () => {
|
||||
|
||||
Reference in New Issue
Block a user