adobe/brackets — pull request #10122 by amici (2014-12-08 22:16:53+00:00)
Title: Correcting the wrong initialization of the _status object (with variables as keys names)

Hello all,

While trying to make mine Brackets and LivePreview work with ChromiumI went into a bit of debugging and saw one possible problem, with initialization of `_status` object.

The way it was previously done had a problem since the variable names were tried to be used as object's keys in wrong way. The way they were used, it was actually creating:
`_status["HTML_READY"] = false;`
instead of:
`_status["htmlReady"] = false;`

(The scenario with using variables for object's keys is described here: http://stackoverflow.com/a/19837961/261332)

So, when later we try to check if the wanted key's ("htmlReady") value is `true` (in `_addListener()`), it was giving false negatives, since "htmlReady" key was initially not existing in that object. What existed was "HTML_READY" key.
Well, maybe it was really giving "good false negatives", since original value was false anyway... but why not fix it if possible.

This is my first git submit, so excuse me if I did something wrong. :) I probably did.