locked
Uncaught ReferenceError: Color is not defined RRS feed

  • Question

  • User-217557848 posted

    Hello, posted this in the MVC section, but I've isolated the issue to one more of Chrome JavaScript support.

    Like the subject says, I get this exception in spite of the fact that I am successfully stepping through the code that initializes the functional class, subsequent enumerated members, and so on.

    When I get to the subsequent check whether Color !== undefined, that somehow yields a ReferenceError. Which is "confirmed" by subsequent usage of Chrome console, "Color", does the same.

    Monday, August 15, 2016 6:34 PM

Answers

  • User-217557848 posted

    I think I see what's going on. Since I am establishing Color in the scope of a function, when the function leaves, so too does the reference.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 15, 2016 6:40 PM