diff --git a/README.md b/README.md index d5c5adcd..c016159b 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,5 @@ neoprene Experimental Super Spy Stuff ![](http://www.glydeamerica.com/wp-content/uploads/2013/08/top_secret.gif) + +https://gist.github.com/sjmiles/c10a0d3ee33371b18b16 diff --git a/neoprene/polymer/features/template.html b/neoprene/polymer/features/template.html index ad924a47..f4f3aca8 100644 --- a/neoprene/polymer/features/template.html +++ b/neoprene/polymer/features/template.html @@ -18,7 +18,7 @@ }, stampTemplate: function(template) { this._stampTemplate(template || this._template, this.root); - if (window.CustomElements) { + if (window.CustomElements && window.CustomElements.upgradeSubtree) { CustomElements.upgradeSubtree(this.root); } }, diff --git a/projects/mail/app-xplat.html b/projects/mail/app-xplat.html new file mode 100644 index 00000000..9aa09bfe --- /dev/null +++ b/projects/mail/app-xplat.html @@ -0,0 +1,35 @@ + + + + + WheeMail + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projects/mail/app.html b/projects/mail/app.html index 66643450..b768d046 100644 --- a/projects/mail/app.html +++ b/projects/mail/app.html @@ -2,142 +2,30 @@ - - - WheeMail + - - - - - - - - - - - + - + + - + - - - - - - diff --git a/projects/mail/elements/x-item.html b/projects/mail/elements/x-item.html index 84619c26..51339cd5 100644 --- a/projects/mail/elements/x-item.html +++ b/projects/mail/elements/x-item.html @@ -67,6 +67,11 @@ 'box.click': 'click' }, + bind: { + item: 'renderItem', + icon: 'box.icon' + }, + created: function() { this.icon = 'box'; }, @@ -76,18 +81,6 @@ this.icon = (this.icon === 'box') ? 'checked' : 'box'; }, - set item(item) { - this.renderItem(item); - }, - - set icon(icon) { - this._icon = this.$.box.icon = icon; - }, - - get icon() { - return this._icon; - }, - renderItem: function(item) { this.$.wrapper.className = this.computeItemClass(item); this.$.from.textContent = item.from; diff --git a/projects/mail/app.css b/projects/mail/src/app.css similarity index 100% rename from projects/mail/app.css rename to projects/mail/src/app.css diff --git a/projects/mail/src/elements.html b/projects/mail/src/elements.html new file mode 100644 index 00000000..e173b14a --- /dev/null +++ b/projects/mail/src/elements.html @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/projects/mail/src/x-app.html b/projects/mail/src/x-app.html new file mode 100644 index 00000000..a36a9447 --- /dev/null +++ b/projects/mail/src/x-app.html @@ -0,0 +1,100 @@ + + + + + diff --git a/projects/sampler/x.html b/projects/sampler/app-xplat.html similarity index 100% rename from projects/sampler/x.html rename to projects/sampler/app-xplat.html diff --git a/projects/sampler/index.html b/projects/sampler/app.html similarity index 100% rename from projects/sampler/index.html rename to projects/sampler/app.html