Now using BibTeX for references
parent
fb1a4b8012
commit
a666fc92ac
25
Makefile
25
Makefile
|
@ -1,25 +1,30 @@
|
||||||
# This file is under the public domain.
|
# This file is under the public domain.
|
||||||
|
|
||||||
sec = coope.tex \
|
sec = coope.tex \
|
||||||
|
coope.bib \
|
||||||
sec/class-like.tex \
|
sec/class-like.tex \
|
||||||
sec/encap-hacks.tex \
|
sec/encap-hacks.tex \
|
||||||
sec/hacking-proto.tex \
|
sec/hacking-proto.tex \
|
||||||
sec/licenses.tex
|
sec/licenses.tex
|
||||||
|
|
||||||
.PHONY: default pdf dvi
|
src = coope.tex
|
||||||
|
aux = coope.aux
|
||||||
|
|
||||||
|
.PHONY: default pdf dvi clean
|
||||||
|
|
||||||
default: pdf dvi
|
default: pdf dvi
|
||||||
pdf: coope.pdf
|
|
||||||
dvi: coope.dvi
|
|
||||||
|
|
||||||
# intentionally two-pass
|
pdf: $(sec)
|
||||||
%.pdf: $(sec)
|
pdflatex $(src)
|
||||||
pdflatex $< $@
|
bibtex $(aux)
|
||||||
pdflatex $< $@
|
pdflatex $(src)
|
||||||
|
pdflatex $(src)
|
||||||
|
|
||||||
%.dvi: $(sec)
|
dvi: $(sec)
|
||||||
latex $< $@
|
latex $(src)
|
||||||
latex $< $@
|
bibtex $(aux)
|
||||||
|
latex $(src)
|
||||||
|
latex $(src)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f coope.{pdf,dvi}
|
rm -f coope.{pdf,dvi}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
@manual{es5-call,
|
||||||
|
organization = "ECMA International",
|
||||||
|
title = "ECMA-262",
|
||||||
|
edition = "5.1",
|
||||||
|
year = "2011",
|
||||||
|
month = "Jun",
|
||||||
|
note = "Section 10.4.3"
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
\usepackage{listings}
|
\usepackage{listings}
|
||||||
\usepackage{color}
|
\usepackage{color}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
|
\usepackage{cite}
|
||||||
|
|
||||||
\hypersetup{colorlinks,
|
\hypersetup{colorlinks,
|
||||||
citecolor=black,
|
citecolor=black,
|
||||||
|
|
|
@ -41,4 +41,7 @@
|
||||||
\input{sec/encap-hacks}
|
\input{sec/encap-hacks}
|
||||||
\input{sec/licenses}
|
\input{sec/licenses}
|
||||||
|
|
||||||
|
\bibliographystyle{plain}
|
||||||
|
\bibliography{coope}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
|
@ -254,8 +254,7 @@ from within the constructor, is bound to the new instance when invoked with the
|
||||||
properties of \keyword{this} from within the constructor without any problems.
|
properties of \keyword{this} from within the constructor without any problems.
|
||||||
What, then, happens if the constructor is invoked \emph{without} the keyword?
|
What, then, happens if the constructor is invoked \emph{without} the keyword?
|
||||||
\keyword{this} would instead be bound (according to the ECMAScript
|
\keyword{this} would instead be bound (according to the ECMAScript
|
||||||
standard\footnote{See ECMAScript Language Specification, ECMA-262 5.1 Edition,
|
standard\cite{es5-call}) to ``the global object'',\footnote{In most browser
|
||||||
Section 1.4.3 on pg 58.}) to ``the global object'',\footnote{In most browser
|
|
||||||
environments, the global object is \var{window}.} unless in strict mode. This is
|
environments, the global object is \var{window}.} unless in strict mode. This is
|
||||||
dangerous:
|
dangerous:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue