summaryrefslogtreecommitdiff
path: root/pages/check_scriptca.swig
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-11-18 16:42:31 +0100
committerJuuso Lapinlampi <wub@partyvan.eu>2015-11-18 16:42:31 +0100
commitc950e85c8248800f321e280c16a48f15a35e8d4a (patch)
treeb37a1215c04ab11bc823eaf4784be0766b0edbfa /pages/check_scriptca.swig
parenta46c5d3a4d7d7bae4e1001923806cfcee8d71b35 (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/check_scriptca.swig')
0 files changed, 0 insertions, 0 deletions