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
| var xhr = function(x, y, z) { | |
| var a; | |
| return new Promise(function(o, p) { | |
| with(a = new XMLHttpRequest) open(y || "GET", x), send(z || null), onload = function(n) { | |
| o(n.target.responseText) | |
| }, onerror = p | |
| }) | |
| }; | |
| //usage: |
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
| (function(window){ | |
| var EVENT_EXISTS = 'GlobalEvents: Event already exists.'; | |
| var eventIsRunning, | |
| _eventStack, | |
| _findByName, | |
| stackEvent, | |
| removeEvent, | |
| eventListener, |
NewerOlder