diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-11-18 16:42:31 +0100 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-11-18 16:42:31 +0100 |
| commit | c950e85c8248800f321e280c16a48f15a35e8d4a (patch) | |
| tree | b37a1215c04ab11bc823eaf4784be0766b0edbfa /pages/nojsca.swig | |
| parent | a46c5d3a4d7d7bae4e1001923806cfcee8d71b35 (diff) | |
Workaround undefined length TypeError in cheesesteak
this._events[evt].length would run into JavaScript scope issues in
EventEmitter.prototype.emit function for-loop.
This is an attempt to work around the issue to resolve an innocent
looking TypeError. The code seems to work without this patch, but I
can't spot if this is some dead code or know what to do with it. Due to
technical debt, some sacrifice had to be made in readability for fixing
this bug.
This bug was introduced in commit 575b78b.
For future improvement, this function and other functions in the file
should be refactored or replaced with a more efficient implementation.
Diffstat (limited to 'pages/nojsca.swig')
0 files changed, 0 insertions, 0 deletions
