This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Notification { | |
| constructor() { | |
| this.notifyIDs = []; | |
| let template = `<header role="header"><i role="button">Close</i></header><main role="main"></main>`; | |
| let style = ` | |
| <style> | |
| :host { | |
| max-width: 350px !important; | |
| min-width: 260px !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Queue extends Array { | |
| constructor (STACKSIZE = Number.MAX_SAFE_INTEGER, ...arg) { | |
| super(...arg) | |
| Object.defineProperty(this, 'STACKSIZE', { | |
| value: STACKSIZE | |
| }) | |
| this.enqueue = this.enqueue.bins(this); | |
| this.dequeue = this.dequeue.bind(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Stack extends Array { | |
| constructor(STACKSIZE = Number.MAX_SAFE_INTEGER, ...arg) { | |
| super(...arg); | |
| Object.defineProperty(this, 'STACKSIZE', { | |
| value: STACKSIZE | |
| }) | |
| this.push = this.push.bind(this); | |
| this.pop = this.pop.bind(this); |