bindTo fixes

This commit is contained in:
Dima Granetchi
2014-11-10 22:17:02 +02:00
parent 5f1da93724
commit 94d86b091f
4 changed files with 26 additions and 16 deletions
+9
View File
@@ -31,6 +31,15 @@ class TestProperty extends haxe.unit.TestCase {
assertEquals(callNum, 2);
}
function test2() {
var p = new BindableProperty();
var t = {a:""};
Bind.bindTo(p.s, t.a);
p.s = "123";
assertEquals(t.a, p.s);
}
}
class BindableProperty implements bindx.IBindable {