Mercurial > code > home > repos > light9
changeset 1304:ace07d2e971f
don't use 'this' as an attribute name
Ignore-this: 498ade272028afa2e03fdefa982826f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Mon, 30 May 2016 20:59:42 +0000 |
parents | 052e31de680c |
children | 1f3e105a893c |
files | light9/web/live.html |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/live.html Mon May 30 20:31:40 2016 +0000 +++ b/light9/web/live.html Mon May 30 20:59:42 2016 +0000 @@ -23,11 +23,12 @@ properties: { status: {type: String, value: 'init'}, clientSession: {value: ""+Date.now()}, - this: {type: Object, notify: true} + self: {type: Object, notify: true} }, ready: function() { + this.self = this; var self = this; - self.this = self; + self.$.put.addEventListener( 'error', function() { self.status = 'err'; }); self.$.put.addEventListener( @@ -111,7 +112,7 @@ <template> <style> </style> - <light9-collector-client this="{{client}}"></light9-collector-client> + <light9-collector-client self="{{client}}"></light9-collector-client> <h1>live</h1> <ul>