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
| /* A jquery plugin to watch for and track events so that they become phases, which allows listeners to attach after the event occurs. */ | |
| $.prototype.capturePhase = function(eventName) { | |
| console.log("Watching for transition to phase " + eventName); | |
| var self = this; | |
| if (!this.__phaseCapturers__) this.__phaseCapturers__ = {}; | |
| if (!this.__phaseCapturers__[eventName]) { | |
| this.__phaseCapturers__[eventName] = true; |