From 9b2ce643008ff3ac15144e87dfca2e213cbbceda Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 11 Jun 2016 07:03:39 -0400 Subject: [PATCH] Precompile location example. Requires rename location -> locationRecord to avoid window.location clash. --- js/examples/location/.gitignore | 1 + js/examples/location/Makefile | 7 +++++++ js/examples/location/index.html | 6 +++--- js/examples/location/index.js | 18 +++++++++--------- 4 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 js/examples/location/.gitignore create mode 100644 js/examples/location/Makefile diff --git a/js/examples/location/.gitignore b/js/examples/location/.gitignore new file mode 100644 index 0000000..62138e5 --- /dev/null +++ b/js/examples/location/.gitignore @@ -0,0 +1 @@ +*.expanded.js diff --git a/js/examples/location/Makefile b/js/examples/location/Makefile new file mode 100644 index 0000000..6b0a114 --- /dev/null +++ b/js/examples/location/Makefile @@ -0,0 +1,7 @@ +all: index.expanded.js + +%.expanded.js: %.js + ../../bin/syndicatec $< > $@ || (rm -f $@; false) + +clean: + rm -f *.expanded.js diff --git a/js/examples/location/index.html b/js/examples/location/index.html index 64ddd16..c0d2b6f 100644 --- a/js/examples/location/index.html +++ b/js/examples/location/index.html @@ -8,9 +8,7 @@ - - - +