Within a js implementation of a module design pattern I've defined several functions. I wanted to break out some long html string variables into an object separate from the function using it so I defined the following object:
var resources =
{
htmlVar1:'...',
htmlVar2:'...'
}
However, Resharper is telling me 'Code is unreachable'. Is this error correct? If so then how would you normally implement something like this within the context of a js module design pattern?
Aucun commentaire:
Enregistrer un commentaire