I have a JSHint plugin for SublimeText that gets angry when things are undefined. I just add these manually until it is happy. To me it looks just the same as if there is a syntax error (as far as what the editor says).