bind.chain refacttoring/optimizations

This commit is contained in:
Dima Granetchi
2014-11-20 00:04:13 +02:00
parent 82936c8dba
commit 28d3a5850a
2 changed files with 88 additions and 65 deletions
+16
View File
@@ -57,6 +57,22 @@ class ChainBindTest extends BuddySuite {
callNum.should.be(2);
});
it("BindExt.chain should bind default fields", {
b.d = "a";
var unbind = BindExt.chain(b.d, function (f:String, t:String) {
callNum ++;
});
b.d = "b";
callNum.should.be(2);
unbind();
b.d = "c";
callNum.should.be(2);
});
});
}
}