Don't publish uiFragmentVersion until the DOM nodes are up in the page.
This commit is contained in:
parent
7067c06961
commit
75bc4a8ca5
|
@ -245,10 +245,8 @@ function UIFragment(fragmentId) {
|
||||||
this.name = ['uiFragment', fragmentId];
|
this.name = ['uiFragment', fragmentId];
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextVersion = 0;
|
|
||||||
UIFragment.prototype.boot = function () {
|
UIFragment.prototype.boot = function () {
|
||||||
return Patch.sub(Trie.projectionToPattern(this.demandProj)) // track demand
|
return Patch.sub(Trie.projectionToPattern(this.demandProj)) // track demand
|
||||||
.andThen(Patch.assert(uiFragmentVersion(this.fragmentId, nextVersion++))) // assert presence
|
|
||||||
.andThen(Patch.sub(Trie.projectionToPattern(this.eventDemandProj)))
|
.andThen(Patch.sub(Trie.projectionToPattern(this.eventDemandProj)))
|
||||||
// ^ track demand for fragment-specific events
|
// ^ track demand for fragment-specific events
|
||||||
;
|
;
|
||||||
|
@ -394,6 +392,7 @@ UIFragment.prototype.updateContent = function (newSelector, newHtml, newOrderBy)
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var nextVersion = 0;
|
||||||
UIFragment.prototype.handleEvent = function (e) {
|
UIFragment.prototype.handleEvent = function (e) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue