Closed jezen closed 5 years ago
Assuming sectionClass is created with newIdent, and the generated identifier is hident2, a line like this:
sectionClass
newIdent
hident2
$("section.#{sectionClass}").hide();
generates incorrect JavaScript like this:
$("section."hident2"").hide();
The book should be updated to mention we need to use rawJS, like this:
rawJS
$("section.#{rawJS sectionClass}").hide();
Also worth mentioning that we need the necessary import too.
import Text.Julius (RawJS (..))
Page that should be updated is here.
Assuming
sectionClass
is created withnewIdent
, and the generated identifier ishident2
, a line like this:generates incorrect JavaScript like this:
The book should be updated to mention we need to use
rawJS
, like this:Also worth mentioning that we need the necessary import too.
Page that should be updated is here.