Skip to content

Commit

Permalink
actually teardown even if the dom is in the page
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed May 29, 2018
1 parent db755d3 commit 11802b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions can-stache-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,6 @@ var behaviors = {


var tearItAllDown = function(){
if (el.ownerDocument.contains(el)) {
return;
}
if(teardown) {
teardown();
teardown = undefined;
Expand Down
2 changes: 2 additions & 0 deletions test/colon/basics-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ testHelpers.makeTests("can-stache-bindings - colon - basics", function(name, doc
var frag = template(map),
input = frag.firstChild.getElementsByTagName("input")[0];

this.fixture.appendChild(frag);

QUnit.equal(input.value, "VALUE", "value set initially");
map.set("value","");

Expand Down

0 comments on commit 11802b5

Please sign in to comment.