Skip to content

Commit

Permalink
removing a compatability test
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed May 18, 2015
1 parent cf5391b commit 6e42473
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions test/pluginified/2.0.5.test.js
Expand Up @@ -10331,42 +10331,6 @@ var __m48 = (function () {

});

test("directly nested live sections unbind without needing the element to be removed", function () {
var template = can.view.mustache(
"<div>" +
"{{#items}}" +
"<p>first</p>" +
"{{#visible}}<label>foo</label>{{/visible}}" +
"<p>second</p>" +
"{{/items}}" +
"</div>");

var data = new can.Map({
items: [{
visible: true
}]
});

function handler(eventType) {
can.Map.prototype.unbind.apply(this, arguments);
if (eventType === "visible") {
start();
ok(true, "unbound visible")
}
}

data.attr("items.0")
.unbind = handler;

template(data);

data.attr("items", [{
visible: true
}]);

stop();
})

test("direct live section", function () {
var template = can.view.mustache("{{#if visible}}<label/>{{/if}}");

Expand Down

0 comments on commit 6e42473

Please sign in to comment.