Open core-ai-bot opened 3 years ago
Comment by tvoliter Tuesday Jan 31, 2012 at 18:59 GMT
Jason, can I pass this on to you since you worked on the FileReader functions?
Comment by tvoliter Tuesday Jan 31, 2012 at 22:40 GMT
merged pull request and marked as fixed. Back to Peter to close
Issue by peterflynn Tuesday Jan 31, 2012 at 04:22 GMT Originally opened as https://github.com/adobe/brackets/issues/172
These two globals are created, I think accidentally, by readAsText() line ~610. I believe the desire was to store those fields on the FileReader instance itself, so it should be assigning to self.error and self.result. I didn't see where else these fields are used, though (shouldn't the error code be passed to the error callback somehow?), so I wasn't sure enough of this to just go change it on my own.
There are a few other places in this function that look like a similar mistake: