git ssb

1+

Matt McKegg / mutant



Commit 811471d96177e802b3494b836eccf4a0fb1336de

html-element: fix "next tick" child invalidation

Matt McKegg committed on 8/31/2016, 4:43:51 AM
Parent: ba938d4692fe73ad9200093bf9c44381ab8373e1

Files changed

html-element.jschanged
html-element.jsView
@@ -211,9 +211,9 @@
211211 this.document = document
212212 this.obs = obs
213213 this.data = data
214214 this.bound = false
215- this.invalid = false
215+ this.invalidated = false
216216 this.update = function (value) {
217217 var oldNodes = data.targets.get(obs)
218218 var newNodes = getNodes(document, value)
219219 if (oldNodes) {
@@ -226,12 +226,12 @@
226226
227227 Binding.prototype = {
228228 bind: function () {
229229 if (!this.bound) {
230- this._release = this.invalid
230+ this._release = this.invalidated
231231 ? watch(this.obs, this.update)
232232 : this.obs(this.update)
233- this.invalid = false
233+ this.invalidated = false
234234 this.bound = true
235235 }
236236 },
237237 unbind: function () {

Built with git-ssb-web