Commit 811471d96177e802b3494b836eccf4a0fb1336de
html-element: fix "next tick" child invalidation
Matt McKegg committed on 8/31/2016, 4:43:51 AMParent: ba938d4692fe73ad9200093bf9c44381ab8373e1
Files changed
html-element.js | changed |
html-element.js | ||
---|---|---|
@@ -211,9 +211,9 @@ | ||
211 | 211 | this.document = document |
212 | 212 | this.obs = obs |
213 | 213 | this.data = data |
214 | 214 | this.bound = false |
215 | - this.invalid = false | |
215 | + this.invalidated = false | |
216 | 216 | this.update = function (value) { |
217 | 217 | var oldNodes = data.targets.get(obs) |
218 | 218 | var newNodes = getNodes(document, value) |
219 | 219 | if (oldNodes) { |
@@ -226,12 +226,12 @@ | ||
226 | 226 | |
227 | 227 | Binding.prototype = { |
228 | 228 | bind: function () { |
229 | 229 | if (!this.bound) { |
230 | - this._release = this.invalid | |
230 | + this._release = this.invalidated | |
231 | 231 | ? watch(this.obs, this.update) |
232 | 232 | : this.obs(this.update) |
233 | - this.invalid = false | |
233 | + this.invalidated = false | |
234 | 234 | this.bound = true |
235 | 235 | } |
236 | 236 | }, |
237 | 237 | unbind: function () { |
Built with git-ssb-web