Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
fix for re attach issue of override
Browse files Browse the repository at this point in the history
  • Loading branch information
dougchestnut committed Feb 11, 2021
1 parent 1c0187a commit 806fc5a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6963,6 +6963,8 @@ class UvalibModelRealtimeOverride extends UvalibModelFBDB {
}

_dataChanged(value) {


this._gotdata = true;
if (this._timeout) {
window.clearTimeout(this._timeout);
Expand Down Expand Up @@ -7027,7 +7029,9 @@ class UvalibModelRealtimeOverride extends UvalibModelFBDB {
this._overrideContainer = this.shadow.querySelector('#override');
this._overrideContent = this.shadow.querySelector('#overrideContent');
this._defaultContainer = this.shadow.querySelector('#default');
this._adjustDom(false);
if (this._data) {
this._dataChanged(this._data);
}
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6963,6 +6963,8 @@ class UvalibModelRealtimeOverride extends UvalibModelFBDB {
}

_dataChanged(value) {


this._gotdata = true;
if (this._timeout) {
window.clearTimeout(this._timeout);
Expand Down Expand Up @@ -7027,7 +7029,9 @@ class UvalibModelRealtimeOverride extends UvalibModelFBDB {
this._overrideContainer = this.shadow.querySelector('#override');
this._overrideContent = this.shadow.querySelector('#overrideContent');
this._defaultContainer = this.shadow.querySelector('#default');
this._adjustDom(false);
if (this._data) {
this._dataChanged(this._data);
}
}

}
Expand Down
6 changes: 5 additions & 1 deletion packages/uvalib-models/uvalib-model-realtime-override.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default class UvalibModelRealtimeOverride extends UvalibModelFBDB {
}

_dataChanged(value) {


this._gotdata = true;
if (this._timeout) {
window.clearTimeout(this._timeout);
Expand Down Expand Up @@ -99,7 +101,9 @@ export default class UvalibModelRealtimeOverride extends UvalibModelFBDB {
this._overrideContainer = this.shadow.querySelector('#override');
this._overrideContent = this.shadow.querySelector('#overrideContent');
this._defaultContainer = this.shadow.querySelector('#default');
this._adjustDom(false);
if (this._data) {
this._dataChanged(this._data);
}
}

}
Expand Down

0 comments on commit 806fc5a

Please sign in to comment.