Skip to content

Commit

Permalink
fix issue with cached elements having lingering style data when they …
Browse files Browse the repository at this point in the history
…are re-used

@see artichox's comment 4-Sep at Famous#487
  • Loading branch information
CompSciFutures committed Feb 1, 2016
1 parent 776a0bf commit 12909a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dom-renderables/DOMElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ DOMElement.prototype.onMount = function onMount(node, id) {
* @return {undefined} undefined
*/
DOMElement.prototype.onDismount = function onDismount() {
for ( var i in this._styles )
this.setProperty(i, '');
for ( var i in this._attributes )
this.setAttribute(i, '');
this.setProperty('display', 'none');
this.setAttribute('data-fa-path', '');
this.setCutoutState(false);
Expand Down

0 comments on commit 12909a2

Please sign in to comment.