From 331fd75570ae748602b832d676cc838307925cea Mon Sep 17 00:00:00 2001 From: fafcrumb Date: Wed, 19 Oct 2016 00:05:30 -0400 Subject: [PATCH] refine(data-elements) sharing with monostate objects reworked user-data and countries-data to use a monostate pattern. What this does is allow the data recieved from etools-ajax to be shared with sub-sequent stamps of the element, reducing performance cost of stamping. A similar but more complicated approach was used for the now unused etool-data element. --- src/app-config/etools-app-config.html | 12 +- .../countries-data/countries-data.html | 63 ++++-- src/app-elements/etools-data/etools-data.html | 136 ------------- src/app-elements/user-data/user-data.html | 179 +++++++++--------- src/pages/page-section1.html | 5 - 5 files changed, 137 insertions(+), 258 deletions(-) delete mode 100644 src/app-elements/etools-data/etools-data.html diff --git a/src/app-config/etools-app-config.html b/src/app-config/etools-app-config.html index fcbde7f..35059b0 100644 --- a/src/app-config/etools-app-config.html +++ b/src/app-config/etools-app-config.html @@ -2,7 +2,7 @@ App global configuration --> - + diff --git a/src/app-elements/countries-data/countries-data.html b/src/app-elements/countries-data/countries-data.html index 2810417..108f8bb 100644 --- a/src/app-elements/countries-data/countries-data.html +++ b/src/app-elements/countries-data/countries-data.html @@ -1,43 +1,70 @@ - - + diff --git a/src/app-elements/etools-data/etools-data.html b/src/app-elements/etools-data/etools-data.html deleted file mode 100644 index 485db51..0000000 --- a/src/app-elements/etools-data/etools-data.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - - diff --git a/src/app-elements/user-data/user-data.html b/src/app-elements/user-data/user-data.html index e372c1f..5cf82c5 100644 --- a/src/app-elements/user-data/user-data.html +++ b/src/app-elements/user-data/user-data.html @@ -1,127 +1,124 @@ + + - - \ No newline at end of file + + + diff --git a/src/pages/page-section1.html b/src/pages/page-section1.html index 8e51de5..31c9646 100644 --- a/src/pages/page-section1.html +++ b/src/pages/page-section1.html @@ -2,8 +2,6 @@ - - @@ -64,9 +62,6 @@

Tab 1 Content

Tab 2 Content

- - -