Files
@ fb9550946c26
Branch filter:
Location: kallithea/scripts/logformat.py
fb9550946c26
1.8 KiB
text/x-python
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'`