Files
@ fb9550946c26
Branch filter:
Location: kallithea/scripts/make-release
fb9550946c26
2.4 KiB
text/plain
js: use strict ... and fix the problems it points out
"use strict" gives stricter checks, both statically and at runtime. The
strictness tightens up the code and prevents some kinds of problems.
The <script> tag addition might not be pretty, but has consistently been added
with:
sed -i 's,<script>$,&'"'"'use strict'"'"';,g' `hg loc '*.html'`
"use strict" gives stricter checks, both statically and at runtime. The
strictness tightens up the code and prevents some kinds of problems.
The <script> tag addition might not be pretty, but has consistently been added
with:
sed -i 's,<script>$,&'"'"'use strict'"'"';,g' `hg loc '*.html'`